bdb_res.c File Reference

#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include "../../mem/mem.h"
#include "bdb_res.h"

Include dependency graph for bdb_res.c:

Go to the source code of this file.

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 _dtp, 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)


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  _dtp,
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