Functions

km_pg_con.c File Reference

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>
Include dependency graph for km_pg_con.c:

Go to the source code of this file.

Functions


Detailed Description

Definition in file km_pg_con.c.


Function Documentation

void db_postgres_free_connection ( struct pool_con con  ) 
Parameters:
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().

Here is the call graph for this function:

Here is the caller graph for this function:

struct pg_con* db_postgres_new_connection ( struct db_id id  )  [read]

Create a new connection structure in private memory, open the PostgreSQL connection and set reference count to 1

Parameters:
id database id
Returns:
postgres connection structure, 0 on error

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().

Here is the call graph for this function:

Here is the caller graph for this function: