Clases |
| union | pgresult_data |
| struct | pgresAttDesc |
| struct | pgresAttValue |
| struct | pgMessageField |
| struct | PGNoticeHooks |
| struct | pg_result |
| struct | PQEnvironmentOption |
| struct | pgParameterStatus |
| struct | pgLobjfuncs |
| struct | pg_conn |
| struct | pg_cancel |
'defines' |
| #define | PQERRORMSG_LENGTH 1024 |
| #define | CMDSTATUS_LEN 40 |
| #define | NULL_LEN (-1) |
| #define | pglock_thread() pg_g_threadlock(true) |
| #define | pgunlock_thread() pg_g_threadlock(false) |
| #define | pqIsnonblocking(conn) ((conn)->nonblocking) |
| #define | libpq_gettext(x) (x) |
| #define | SOCK_ERRNO errno |
| #define | SOCK_STRERROR pqStrerror |
| #define | SOCK_ERRNO_SET(e) (errno = (e)) |
'typedefs' |
| typedef union pgresult_data | PGresult_data |
| typedef struct pgresAttDesc | PGresAttDesc |
| typedef struct pgresAttValue | PGresAttValue |
| typedef struct pgMessageField | PGMessageField |
| typedef struct PQEnvironmentOption | PQEnvironmentOption |
| typedef struct pgParameterStatus | pgParameterStatus |
| typedef struct pgLobjfuncs | PGlobjfuncs |
Enumeraciones |
| enum | PGAsyncStatusType {
PGASYNC_IDLE,
PGASYNC_BUSY,
PGASYNC_READY,
PGASYNC_COPY_IN,
PGASYNC_COPY_OUT
} |
| enum | PGQueryClass { PGQUERY_SIMPLE,
PGQUERY_EXTENDED,
PGQUERY_PREPARE
} |
| enum | PGSetenvStatusType {
SETENV_STATE_OPTION_SEND,
SETENV_STATE_OPTION_WAIT,
SETENV_STATE_QUERY1_SEND,
SETENV_STATE_QUERY1_WAIT,
SETENV_STATE_QUERY2_SEND,
SETENV_STATE_QUERY2_WAIT,
SETENV_STATE_IDLE
} |
Funciones |
| int | pqPacketSend (PGconn *conn, char pack_type, const void *buf, size_t buf_len) |
| bool | pqGetHomeDirectory (char *buf, int bufsize) |
| void | pqSetResultError (PGresult *res, const char *msg) |
| void | pqCatenateResultError (PGresult *res, const char *msg) |
| void * | pqResultAlloc (PGresult *res, size_t nBytes, bool isBinary) |
| char * | pqResultStrdup (PGresult *res, const char *str) |
| void | pqClearAsyncResult (PGconn *conn) |
| void | pqSaveErrorResult (PGconn *conn) |
| PGresult * | pqPrepareAsyncResult (PGconn *conn) |
| void | pqInternalNotice (const PGNoticeHooks *hooks, const char *fmt,...) __attribute__((format(printf |
| void 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) |
| void | pqHandleSendFailure (PGconn *conn) |
| PostgresPollingStatusType | pqSetenvPoll (PGconn *conn) |
| char * | pqBuildStartupPacket2 (PGconn *conn, int *packetlen, const PQEnvironmentOption *options) |
| void | pqParseInput2 (PGconn *conn) |
| int | pqGetCopyData2 (PGconn *conn, char **buffer, int async) |
| int | pqGetline2 (PGconn *conn, char *s, int maxlen) |
| int | pqGetlineAsync2 (PGconn *conn, char *buffer, int bufsize) |
| int | pqEndcopy2 (PGconn *conn) |
| PGresult * | pqFunctionCall2 (PGconn *conn, Oid fnid, int *result_buf, int *actual_result_len, int result_is_int, const PQArgBlock *args, int nargs) |
| char * | pqBuildStartupPacket3 (PGconn *conn, int *packetlen, const PQEnvironmentOption *options) |
| void | pqParseInput3 (PGconn *conn) |
| int | pqGetErrorNotice3 (PGconn *conn, bool isError) |
| int | pqGetCopyData3 (PGconn *conn, char **buffer, int async) |
| int | pqGetline3 (PGconn *conn, char *s, int maxlen) |
| int | pqGetlineAsync3 (PGconn *conn, char *buffer, int bufsize) |
| int | pqEndcopy3 (PGconn *conn) |
| PGresult * | pqFunctionCall3 (PGconn *conn, Oid fnid, int *result_buf, int *actual_result_len, int result_is_int, const PQArgBlock *args, int nargs) |
| int | pqCheckOutBufferSpace (int bytes_needed, PGconn *conn) |
| int | pqCheckInBufferSpace (int bytes_needed, PGconn *conn) |
| int | pqGetc (char *result, PGconn *conn) |
| int | pqPutc (char c, PGconn *conn) |
| int | pqGets (PQExpBuffer buf, PGconn *conn) |
| int | pqPuts (const char *s, PGconn *conn) |
| int | pqGetnchar (char *s, size_t len, PGconn *conn) |
| int | pqPutnchar (const char *s, size_t len, PGconn *conn) |
| int | pqGetInt (int *result, size_t bytes, PGconn *conn) |
| int | pqPutInt (int value, size_t bytes, PGconn *conn) |
| int | pqPutMsgStart (char msg_type, bool force_len, PGconn *conn) |
| int | pqPutMsgEnd (PGconn *conn) |
| int | pqReadData (PGconn *conn) |
| int | pqFlush (PGconn *conn) |
| int | pqWait (int forRead, int forWrite, PGconn *conn) |
| int | pqWaitTimed (int forRead, int forWrite, PGconn *conn, time_t finish_time) |
| int | pqReadReady (PGconn *conn) |
| int | pqWriteReady (PGconn *conn) |
| int | pqsecure_initialize (PGconn *) |
| void | pqsecure_destroy (void) |
| PostgresPollingStatusType | pqsecure_open_client (PGconn *) |
| void | pqsecure_close (PGconn *) |
| ssize_t | pqsecure_read (PGconn *, void *ptr, size_t len) |
| ssize_t | pqsecure_write (PGconn *, const void *ptr, size_t len) |
| int | pq_block_sigpipe (sigset_t *osigset, bool *sigpipe_pending) |
| void | pq_reset_sigpipe (sigset_t *osigset, bool sigpipe_pending, bool got_epipe) |
Variables |
| char *const | pgresStatus [] |
| pgthreadlock_t | pg_g_threadlock |