Functions

db_postgres/km_res.h File Reference

DB_POSTGRES :: CoreModule: DB_POSTGRES :: the PostgreSQL driver for Kamailio. More...

#include "../../lib/srdb1/db_row.h"
Include dependency graph for db_postgres/km_res.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions


Detailed Description

Definition in file db_postgres/km_res.h.


Function Documentation

int db_postgres_convert_result ( const db1_con_t _h,
db1_res_t _r 
)
Parameters:
_h database connection
_r result set
Returns:
0 on success, negative on error

Definition at line 62 of file db_postgres/km_res.c.

References db_free_columns(), db_postgres_convert_rows(), and db_postgres_get_columns().

Referenced by db_postgres_store_result().

Here is the call graph for this function:

Here is the caller graph for this function:

int db_postgres_convert_row ( const db1_con_t _h,
db1_res_t _r,
db_row_t _row,
char **  row_buf 
)
Parameters:
_h database connection
_r result set
_row row
row_buf row buffer
Returns:
0 on success, negative on error

Definition at line 282 of file db_postgres/km_res.c.

References db_allocate_row(), db_free_row(), db_postgres_str2val(), RES_TYPES, ROW_N, and ROW_VALUES.

Referenced by db_postgres_convert_rows().

Here is the call graph for this function:

Here is the caller graph for this function:

int db_postgres_convert_rows ( const db1_con_t _h,
db1_res_t _r 
)
Parameters:
_h database connection
_r result set
Returns:
0 on success, negative on error

Definition at line 200 of file db_postgres/km_res.c.

References db_allocate_rows(), db_free_rows(), db_postgres_convert_row(), RES_COL_N, RES_LAST_ROW, RES_NAMES, RES_ROW_N, RES_ROWS, and pg_con::row.

Referenced by db_postgres_convert_result(), and db_postgres_fetch_result().

Here is the call graph for this function:

Here is the caller graph for this function:

int db_postgres_get_columns ( const db1_con_t _h,
db1_res_t _r 
)
Parameters:
_h database connection
_r result set
Returns:
0 on success, negative on error

Definition at line 89 of file db_postgres/km_res.c.

References db_allocate_columns(), db_free_columns(), RES_COL_N, RES_NAMES, RES_ROW_N, and RES_TYPES.

Referenced by db_postgres_convert_result(), and db_postgres_fetch_result().

Here is the call graph for this function:

Here is the caller graph for this function: