Eneboo - Documentación para desarrolladores
'defines' | Funciones | Variables
Referencia del Archivo src/libpq/fe-exec.c
#include "postgres_fe.h"
#include <errno.h>
#include <ctype.h>
#include <fcntl.h>
#include "libpq-fe.h"
#include "libpq-int.h"
#include "mb/pg_wchar.h"
#include <unistd.h>

'defines'

#define PGRESULT_DATA_BLOCKSIZE   2048
#define PGRESULT_ALIGN_BOUNDARY   MAXIMUM_ALIGNOF
#define PGRESULT_BLOCK_OVERHEAD   Max(sizeof(PGresult_data), PGRESULT_ALIGN_BOUNDARY)
#define PGRESULT_SEP_ALLOC_THRESHOLD   (PGRESULT_DATA_BLOCKSIZE / 2)
#define ISFIRSTOCTDIGIT(CH)   ((CH) >= '0' && (CH) <= '3')
#define ISOCTDIGIT(CH)   ((CH) >= '0' && (CH) <= '7')
#define OCTVAL(CH)   ((CH) - '0')

Funciones

PGresultPQmakeEmptyPGresult (PGconn *conn, ExecStatusType status)
void * pqResultAlloc (PGresult *res, size_t nBytes, bool isBinary)
char * pqResultStrdup (PGresult *res, const char *str)
void pqSetResultError (PGresult *res, const char *msg)
void pqCatenateResultError (PGresult *res, const char *msg)
void PQclear (PGresult *res)
void pqClearAsyncResult (PGconn *conn)
void pqSaveErrorResult (PGconn *conn)
PGresultpqPrepareAsyncResult (PGconn *conn)
void pqInternalNotice (const PGNoticeHooks *hooks, const char *fmt,...)
int pqAddTuple (PGresult *res, PGresAttValue *tup)
void pqSaveMessageField (PGresult *res, char code, const char *value)
void pqSaveParameterStatus (PGconn *conn, const char *name, const char *value)
int PQsendQuery (PGconn *conn, const char *query)
int PQsendQueryParams (PGconn *conn, const char *command, int nParams, const Oid *paramTypes, const char *const *paramValues, const int *paramLengths, const int *paramFormats, int resultFormat)
int PQsendPrepare (PGconn *conn, const char *stmtName, const char *query, int nParams, const Oid *paramTypes)
int PQsendQueryPrepared (PGconn *conn, const char *stmtName, int nParams, const char *const *paramValues, const int *paramLengths, const int *paramFormats, int resultFormat)
void pqHandleSendFailure (PGconn *conn)
int PQconsumeInput (PGconn *conn)
int PQisBusy (PGconn *conn)
PGresultPQgetResult (PGconn *conn)
PGresultPQexec (PGconn *conn, const char *query)
PGresultPQexecParams (PGconn *conn, const char *command, int nParams, const Oid *paramTypes, const char *const *paramValues, const int *paramLengths, const int *paramFormats, int resultFormat)
PGresultPQprepare (PGconn *conn, const char *stmtName, const char *query, int nParams, const Oid *paramTypes)
PGresultPQexecPrepared (PGconn *conn, const char *stmtName, int nParams, const char *const *paramValues, const int *paramLengths, const int *paramFormats, int resultFormat)
PGnotifyPQnotifies (PGconn *conn)
int PQputCopyData (PGconn *conn, const char *buffer, int nbytes)
int PQputCopyEnd (PGconn *conn, const char *errormsg)
int PQgetCopyData (PGconn *conn, char **buffer, int async)
int PQgetline (PGconn *conn, char *s, int maxlen)
int PQgetlineAsync (PGconn *conn, char *buffer, int bufsize)
int PQputline (PGconn *conn, const char *s)
int PQputnbytes (PGconn *conn, const char *buffer, int nbytes)
int PQendcopy (PGconn *conn)
PGresultPQfn (PGconn *conn, int fnid, int *result_buf, int *actual_result_len, int result_is_int, const PQArgBlock *args, int nargs)
ExecStatusType PQresultStatus (const PGresult *res)
char * PQresStatus (ExecStatusType status)
char * PQresultErrorMessage (const PGresult *res)
char * PQresultErrorField (const PGresult *res, int fieldcode)
int PQntuples (const PGresult *res)
int PQnfields (const PGresult *res)
int PQbinaryTuples (const PGresult *res)
char * PQfname (const PGresult *res, int field_num)
int PQfnumber (const PGresult *res, const char *field_name)
Oid PQftable (const PGresult *res, int field_num)
int PQftablecol (const PGresult *res, int field_num)
int PQfformat (const PGresult *res, int field_num)
Oid PQftype (const PGresult *res, int field_num)
int PQfsize (const PGresult *res, int field_num)
int PQfmod (const PGresult *res, int field_num)
char * PQcmdStatus (PGresult *res)
char * PQoidStatus (const PGresult *res)
Oid PQoidValue (const PGresult *res)
char * PQcmdTuples (PGresult *res)
char * PQgetvalue (const PGresult *res, int tup_num, int field_num)
int PQgetlength (const PGresult *res, int tup_num, int field_num)
int PQgetisnull (const PGresult *res, int tup_num, int field_num)
int PQsetnonblocking (PGconn *conn, int arg)
int PQisnonblocking (const PGconn *conn)
int PQflush (PGconn *conn)
void PQfreemem (void *ptr)
void PQfreeNotify (PGnotify *notify)
size_t PQescapeStringConn (PGconn *conn, char *to, const char *from, size_t length, int *error)
size_t PQescapeString (char *to, const char *from, size_t length)
unsigned char * PQescapeByteaConn (PGconn *conn, const unsigned char *from, size_t from_length, size_t *to_length)
unsigned char * PQescapeBytea (const unsigned char *from, size_t from_length, size_t *to_length)
unsigned char * PQunescapeBytea (const unsigned char *strtext, size_t *retbuflen)

Variables

char *const pgresStatus []

Documentación de los 'defines'

#define ISFIRSTOCTDIGIT (   CH)    ((CH) >= '0' && (CH) <= '3')
#define ISOCTDIGIT (   CH)    ((CH) >= '0' && (CH) <= '7')
#define OCTVAL (   CH)    ((CH) - '0')
#define PGRESULT_ALIGN_BOUNDARY   MAXIMUM_ALIGNOF
#define PGRESULT_BLOCK_OVERHEAD   Max(sizeof(PGresult_data), PGRESULT_ALIGN_BOUNDARY)
#define PGRESULT_DATA_BLOCKSIZE   2048
#define PGRESULT_SEP_ALLOC_THRESHOLD   (PGRESULT_DATA_BLOCKSIZE / 2)

Documentación de las funciones

int pqAddTuple ( PGresult res,
PGresAttValue tup 
)
int PQbinaryTuples ( const PGresult res)
void pqCatenateResultError ( PGresult res,
const char *  msg 
)
void PQclear ( PGresult res)
void pqClearAsyncResult ( PGconn conn)
char* PQcmdStatus ( PGresult res)
char* PQcmdTuples ( PGresult res)
int PQconsumeInput ( PGconn conn)
int PQendcopy ( PGconn conn)
unsigned char* PQescapeBytea ( const unsigned char *  from,
size_t  from_length,
size_t to_length 
)
unsigned char* PQescapeByteaConn ( PGconn conn,
const unsigned char *  from,
size_t  from_length,
size_t to_length 
)
size_t PQescapeString ( char *  to,
const char *  from,
size_t  length 
)
size_t PQescapeStringConn ( PGconn conn,
char *  to,
const char *  from,
size_t  length,
int error 
)
PGresult* PQexec ( PGconn conn,
const char *  query 
)
PGresult* PQexecParams ( PGconn conn,
const char *  command,
int  nParams,
const Oid paramTypes,
const char *const *  paramValues,
const int paramLengths,
const int paramFormats,
int  resultFormat 
)
PGresult* PQexecPrepared ( PGconn conn,
const char *  stmtName,
int  nParams,
const char *const *  paramValues,
const int paramLengths,
const int paramFormats,
int  resultFormat 
)
int PQfformat ( const PGresult res,
int  field_num 
)
int PQflush ( PGconn conn)
int PQfmod ( const PGresult res,
int  field_num 
)
PGresult* PQfn ( PGconn conn,
int  fnid,
int result_buf,
int actual_result_len,
int  result_is_int,
const PQArgBlock args,
int  nargs 
)
char* PQfname ( const PGresult res,
int  field_num 
)
int PQfnumber ( const PGresult res,
const char *  field_name 
)
void PQfreemem ( void *  ptr)
void PQfreeNotify ( PGnotify notify)
int PQfsize ( const PGresult res,
int  field_num 
)
Oid PQftable ( const PGresult res,
int  field_num 
)
int PQftablecol ( const PGresult res,
int  field_num 
)
Oid PQftype ( const PGresult res,
int  field_num 
)
int PQgetCopyData ( PGconn conn,
char **  buffer,
int  async 
)
int PQgetisnull ( const PGresult res,
int  tup_num,
int  field_num 
)
int PQgetlength ( const PGresult res,
int  tup_num,
int  field_num 
)
int PQgetline ( PGconn conn,
char *  s,
int  maxlen 
)
int PQgetlineAsync ( PGconn conn,
char *  buffer,
int  bufsize 
)
PGresult* PQgetResult ( PGconn conn)
char* PQgetvalue ( const PGresult res,
int  tup_num,
int  field_num 
)
void pqHandleSendFailure ( PGconn conn)
void pqInternalNotice ( const PGNoticeHooks hooks,
const char *  fmt,
  ... 
)
int PQisBusy ( PGconn conn)
int PQisnonblocking ( const PGconn conn)
PGresult* PQmakeEmptyPGresult ( PGconn conn,
ExecStatusType  status 
)
int PQnfields ( const PGresult res)
PGnotify* PQnotifies ( PGconn conn)
int PQntuples ( const PGresult res)
char* PQoidStatus ( const PGresult res)
Oid PQoidValue ( const PGresult res)
PGresult* PQprepare ( PGconn conn,
const char *  stmtName,
const char *  query,
int  nParams,
const Oid paramTypes 
)
PGresult* pqPrepareAsyncResult ( PGconn conn)
int PQputCopyData ( PGconn conn,
const char *  buffer,
int  nbytes 
)
int PQputCopyEnd ( PGconn conn,
const char *  errormsg 
)
int PQputline ( PGconn conn,
const char *  s 
)
int PQputnbytes ( PGconn conn,
const char *  buffer,
int  nbytes 
)
char* PQresStatus ( ExecStatusType  status)
void* pqResultAlloc ( PGresult res,
size_t  nBytes,
bool  isBinary 
)
char* PQresultErrorField ( const PGresult res,
int  fieldcode 
)
char* PQresultErrorMessage ( const PGresult res)
ExecStatusType PQresultStatus ( const PGresult res)
char* pqResultStrdup ( PGresult res,
const char *  str 
)
void pqSaveErrorResult ( PGconn conn)
void pqSaveMessageField ( PGresult res,
char  code,
const char *  value 
)
void pqSaveParameterStatus ( PGconn conn,
const char *  name,
const char *  value 
)
int PQsendPrepare ( PGconn conn,
const char *  stmtName,
const char *  query,
int  nParams,
const Oid paramTypes 
)
int PQsendQuery ( PGconn conn,
const char *  query 
)
int PQsendQueryParams ( PGconn conn,
const char *  command,
int  nParams,
const Oid paramTypes,
const char *const *  paramValues,
const int paramLengths,
const int paramFormats,
int  resultFormat 
)
int PQsendQueryPrepared ( PGconn conn,
const char *  stmtName,
int  nParams,
const char *const *  paramValues,
const int paramLengths,
const int paramFormats,
int  resultFormat 
)
int PQsetnonblocking ( PGconn conn,
int  arg 
)
void pqSetResultError ( PGresult res,
const char *  msg 
)
unsigned char* PQunescapeBytea ( const unsigned char *  strtext,
size_t retbuflen 
)

Documentación de las variables

char* const pgresStatus[]
Valor inicial:
 {
        "PGRES_EMPTY_QUERY",
        "PGRES_COMMAND_OK",
        "PGRES_TUPLES_OK",
        "PGRES_COPY_OUT",
        "PGRES_COPY_IN",
        "PGRES_BAD_RESPONSE",
        "PGRES_NONFATAL_ERROR",
        "PGRES_FATAL_ERROR"
}
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'