pg_con Struct Reference

#include <pg_con.h>

Collaboration diagram for pg_con:

Collaboration graph
[legend]

Data Fields

PGconn * con
int connected
struct db_idid
struct pool_connext
unsigned int ref
PGresult * res
char ** row
char * sqlurl
time_t timestamp

Detailed Description

Postgres specific connection data

Definition at line 45 of file pg_con.h.


Field Documentation

PGconn* con

this is the postgres connection

Definition at line 52 of file pg_con.h.

Referenced by db_postgres_free_connection(), and db_postgres_new_connection().

int connected

connection status

Definition at line 50 of file pg_con.h.

Referenced by db_postgres_new_connection().

struct db_id* id [read]

Connection identifier

Definition at line 46 of file pg_con.h.

Referenced by db_postgres_free_connection(), and db_postgres_new_connection().

struct pool_con* next [read]

Next connection in the pool

Definition at line 48 of file pg_con.h.

unsigned int ref

Reference count

Definition at line 47 of file pg_con.h.

Referenced by db_postgres_new_connection().

PGresult* res

this is the current result

Definition at line 53 of file pg_con.h.

Referenced by db_postgres_free_connection().

char** row

Actual row in the result

Definition at line 54 of file pg_con.h.

char* sqlurl

the url we are connected to, all connection memory parents from this

Definition at line 51 of file pg_con.h.

time_t timestamp

Timestamp of last query

Definition at line 55 of file pg_con.h.

Referenced by db_postgres_new_connection().


The documentation for this struct was generated from the following file:

Generated on Thu May 24 18:00:48 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6