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

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) |
| int bdb_append_row | ( | db_res_t * | _res, | |
| char * | bdb_result, | |||
| int * | _lres, | |||
| int | _rx | |||
| ) |
Definition at line 236 of file bdb_res.c.
References bdb_str2val(), db_allocate_row(), db_free_row(), DB_STRING, DELIM, len, LM_DBG, LM_ERR, NULL, pkg_free, pkg_malloc, RES_COL_N, RES_NAMES, RES_ROWS, RES_TYPES, ROW_N, ROW_VALUES, and s.
Referenced by bdb_query().
Definition at line 479 of file bdb_res.c.
References db_val_t::bitmap_val, db_val_t::blob_val, DB_BIGINT, DB_BITMAP, DB_BLOB, DB_DATETIME, DB_DOUBLE, DB_INT, DB_STR, DB_STRING, db_val_t::double_val, db_val_t::int_val, _str::len, LM_ERR, db_val_t::nul, _str::s, db_val_t::str_val, db_val_t::string_val, db_val_t::time_val, db_val_t::val, and VAL_TYPE.
Referenced by bdb_row_match().
| 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().
Definition at line 368 of file bdb_res.c.
References _table::colp, _str::len, len, LM_DBG, _column::name, _table::ncols, NULL, pkg_free, pkg_malloc, _str::s, and s.
Referenced by _bdb_delete_cursor(), bdb_delete(), bdb_insert(), bdb_query(), and bdb_update().
Definition at line 37 of file bdb_res.c.
References _table::colp, db_allocate_columns(), db_free_columns(), len, _str::len, LM_DBG, LM_ERR, _column::name, _table::ncols, NULL, pkg_malloc, RES_COL_N, RES_NAMES, RES_NUM_ROWS, RES_TYPES, s, _str::s, and _column::type.
Referenced by _bdb_delete_cursor(), and bdb_query().
| 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().
1.5.6