Eneboo - Documentación para desarrolladores
|
#include "postgres_fe.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <ctype.h>
#include <time.h>
#include <unistd.h>
#include "strdup.h"
#include "libpq-fe.h"
#include "libpq-int.h"
#include "fe-auth.h"
#include <sys/socket.h>
#include <netdb.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include "libpq/ip.h"
#include "mb/pg_wchar.h"
'defines' | |
#define | FD_CLOEXEC 1 |
#define | PGPASSFILE ".pgpass" |
#define | DefaultHost "localhost" |
#define | DefaultTty "" |
#define | DefaultOption "" |
#define | DefaultAuthtype "" |
#define | DefaultPassword "" |
#define | DefaultSSLMode "disable" |
#define | MAXBUFSIZE 256 |
#define | LINELEN NAMEDATALEN*5 |
Funciones | |
PGconn * | PQconnectdb (const char *conninfo) |
PGconn * | PQconnectStart (const char *conninfo) |
PQconninfoOption * | PQconndefaults (void) |
PGconn * | PQsetdbLogin (const char *pghost, const char *pgport, const char *pgoptions, const char *pgtty, const char *dbName, const char *login, const char *pwd) |
PostgresPollingStatusType | PQconnectPoll (PGconn *conn) |
void | PQfinish (PGconn *conn) |
void | PQreset (PGconn *conn) |
int | PQresetStart (PGconn *conn) |
PostgresPollingStatusType | PQresetPoll (PGconn *conn) |
PGcancel * | PQgetCancel (PGconn *conn) |
void | PQfreeCancel (PGcancel *cancel) |
int | PQcancel (PGcancel *cancel, char *errbuf, int errbufsize) |
int | PQrequestCancel (PGconn *conn) |
int | pqPacketSend (PGconn *conn, char pack_type, const void *buf, size_t buf_len) |
void | PQconninfoFree (PQconninfoOption *connOptions) |
char * | PQdb (const PGconn *conn) |
char * | PQuser (const PGconn *conn) |
char * | PQpass (const PGconn *conn) |
char * | PQhost (const PGconn *conn) |
char * | PQport (const PGconn *conn) |
char * | PQtty (const PGconn *conn) |
char * | PQoptions (const PGconn *conn) |
ConnStatusType | PQstatus (const PGconn *conn) |
PGTransactionStatusType | PQtransactionStatus (const PGconn *conn) |
const char * | PQparameterStatus (const PGconn *conn, const char *paramName) |
int | PQprotocolVersion (const PGconn *conn) |
int | PQserverVersion (const PGconn *conn) |
char * | PQerrorMessage (const PGconn *conn) |
int | PQsocket (const PGconn *conn) |
int | PQbackendPID (const PGconn *conn) |
int | PQclientEncoding (const PGconn *conn) |
int | PQsetClientEncoding (PGconn *conn, const char *encoding) |
PGVerbosity | PQsetErrorVerbosity (PGconn *conn, PGVerbosity verbosity) |
void | PQtrace (PGconn *conn, FILE *debug_port) |
void | PQuntrace (PGconn *conn) |
PQnoticeReceiver | PQsetNoticeReceiver (PGconn *conn, PQnoticeReceiver proc, void *arg) |
PQnoticeProcessor | PQsetNoticeProcessor (PGconn *conn, PQnoticeProcessor proc, void *arg) |
bool | pqGetHomeDirectory (char *buf, int bufsize) |
pgthreadlock_t | PQregisterThreadLock (pgthreadlock_t newhandler) |
Variables | |
pgthreadlock_t | pg_g_threadlock = default_threadlock |
#define DefaultAuthtype "" |
#define DefaultHost "localhost" |
#define DefaultOption "" |
#define DefaultPassword "" |
#define DefaultSSLMode "disable" |
#define DefaultTty "" |
#define FD_CLOEXEC 1 |
#define LINELEN NAMEDATALEN*5 |
#define MAXBUFSIZE 256 |
#define PGPASSFILE ".pgpass" |
PQconninfoOption* PQconndefaults | ( | void | ) |
PGconn* PQconnectdb | ( | const char * | conninfo | ) |
PostgresPollingStatusType PQconnectPoll | ( | PGconn * | conn | ) |
PGconn* PQconnectStart | ( | const char * | conninfo | ) |
void PQconninfoFree | ( | PQconninfoOption * | connOptions | ) |
char* PQdb | ( | const PGconn * | conn | ) |
char* PQerrorMessage | ( | const PGconn * | conn | ) |
void PQfinish | ( | PGconn * | conn | ) |
void PQfreeCancel | ( | PGcancel * | cancel | ) |
char* PQhost | ( | const PGconn * | conn | ) |
char* PQoptions | ( | const PGconn * | conn | ) |
const char* PQparameterStatus | ( | const PGconn * | conn, |
const char * | paramName | ||
) |
char* PQpass | ( | const PGconn * | conn | ) |
char* PQport | ( | const PGconn * | conn | ) |
pgthreadlock_t PQregisterThreadLock | ( | pgthreadlock_t | newhandler | ) |
void PQreset | ( | PGconn * | conn | ) |
PostgresPollingStatusType PQresetPoll | ( | PGconn * | conn | ) |
PGconn* PQsetdbLogin | ( | const char * | pghost, |
const char * | pgport, | ||
const char * | pgoptions, | ||
const char * | pgtty, | ||
const char * | dbName, | ||
const char * | login, | ||
const char * | pwd | ||
) |
PGVerbosity PQsetErrorVerbosity | ( | PGconn * | conn, |
PGVerbosity | verbosity | ||
) |
PQnoticeProcessor PQsetNoticeProcessor | ( | PGconn * | conn, |
PQnoticeProcessor | proc, | ||
void * | arg | ||
) |
PQnoticeReceiver PQsetNoticeReceiver | ( | PGconn * | conn, |
PQnoticeReceiver | proc, | ||
void * | arg | ||
) |
ConnStatusType PQstatus | ( | const PGconn * | conn | ) |
void PQtrace | ( | PGconn * | conn, |
FILE * | debug_port | ||
) |
PGTransactionStatusType PQtransactionStatus | ( | const PGconn * | conn | ) |
char* PQtty | ( | const PGconn * | conn | ) |
void PQuntrace | ( | PGconn * | conn | ) |
char* PQuser | ( | const PGconn * | conn | ) |
pgthreadlock_t pg_g_threadlock = default_threadlock |