bdb_res.h File Reference

#include "../../db/db_op.h"
#include "../../db/db_res.h"
#include "../../db/db_con.h"
#include "bdb_lib.h"
#include "bdb_val.h"

Include dependency graph for bdb_res.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  _con

Defines

#define BDB_CON_CONNECTION(db_con)   (((bdb_con_p)((db_con)->tail))->con)
#define BDB_CON_RESULT(db_con)   (((bdb_con_p)((db_con)->tail))->res)
#define BDB_CON_ROW(db_con)   (((bdb_con_p)((db_con)->tail))->row)

Typedefs

typedef struct _conbdb_con_p
typedef struct _con bdb_con_t

Functions

int bdb_append_row (db_res_t *_res, char *bdb_result, int *_lres, int _rx)
int bdb_cmp_val (db_val_t *_vp, db_val_t *_v)
int bdb_convert_row (db_res_t *_res, char *bdb_result, int *_lres)
int * bdb_get_colmap (table_p _tp, db_key_t *_k, int _n)
int bdb_get_columns (table_p _tp, db_res_t *_res, int *_lres, int _nc)
int bdb_is_neq_type (db_type_t _t0, db_type_t _t1)
int bdb_row_match (db_key_t *_k, db_op_t *_op, db_val_t *_v, int _n, db_res_t *_r, int *lkey)


Define Documentation

#define BDB_CON_CONNECTION ( db_con   )     (((bdb_con_p)((db_con)->tail))->con)

#define BDB_CON_RESULT ( db_con   )     (((bdb_con_p)((db_con)->tail))->res)

Definition at line 48 of file bdb_res.h.

Referenced by bdb_close(), bdb_free_query(), and bdb_query().

#define BDB_CON_ROW ( db_con   )     (((bdb_con_p)((db_con)->tail))->row)

Definition at line 49 of file bdb_res.h.


Typedef Documentation

typedef struct _con * bdb_con_p

typedef struct _con bdb_con_t


Function Documentation

int bdb_append_row ( db_res_t _res,
char *  bdb_result,
int *  _lres,
int  _rx 
)

int bdb_cmp_val ( db_val_t _vp,
db_val_t _v 
)

int bdb_convert_row ( db_res_t _res,
char *  bdb_result,
int *  _lres 
)

Convert rows from Berkeley DB to db API representation

Definition at line 97 of file bdb_res.c.

References bdb_str2val(), db_allocate_row(), db_free_row(), DB_STR, DB_STRING, DELIM, len, LM_DBG, LM_ERR, NULL, pkg_free, pkg_malloc, RES_COL_N, RES_NAMES, RES_ROW_N, RES_ROWS, RES_TYPES, ROW_N, ROW_VALUES, and s.

Referenced by _bdb_delete_cursor(), and bdb_query().

int* bdb_get_colmap ( table_p  _tp,
db_key_t _k,
int  _n 
)

int bdb_get_columns ( table_p  _tp,
db_res_t _res,
int *  _lres,
int  _nc 
)

int bdb_is_neq_type ( db_type_t  _t0,
db_type_t  _t1 
)

Definition at line 399 of file bdb_res.c.

References DB_BIGINT, DB_BITMAP, DB_BLOB, DB_DATETIME, DB_DOUBLE, DB_INT, DB_STR, DB_STRING, and LM_ERR.

Referenced by bdb_insert().

int bdb_row_match ( db_key_t _k,
db_op_t _op,
db_val_t _v,
int  _n,
db_res_t _r,
int *  lkey 
)

Definition at line 437 of file bdb_res.c.

References bdb_cmp_val(), NULL, OP_EQ, OP_GEQ, OP_GT, OP_LEQ, OP_LT, RES_ROWS, and ROW_VALUES.

Referenced by _bdb_delete_cursor().


Generated on Thu May 17 12:00:35 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6