DB_POSTGRES :: CoreModule: DB_POSTGRES :: the PostgreSQL driver for Kamailio. More...
#include "km_pg_con.h"#include "../../mem/mem.h"#include "../../dprint.h"#include "../../ut.h"#include <string.h>#include <time.h>
Go to the source code of this file.
Definition in file km_pg_con.c.
| void db_postgres_free_connection | ( | struct pool_con * | con | ) |
| con | connection |
Definition at line 106 of file km_pg_con.c.
References pg_con::con, free_db_id(), pg_con::id, and pg_con::res.
Referenced by db_postgres_close().


Create a new connection structure in private memory, open the PostgreSQL connection and set reference count to 1
| id | database id |
Definition at line 44 of file km_pg_con.c.
References pg_con::con, pg_con::connected, db_id::database, db_id::host, pg_con::id, int2str(), db_id::password, db_id::port, pg_con::ref, pg_con::timestamp, and db_id::username.
Referenced by db_postgres_init(), and db_postgres_init2().


1.7.1