#include "../../db/db_con.h"#include "../../db/db_res.h"#include "../../db/db_key.h"#include "../../db/db_op.h"#include "../../db/db_val.h"


Go to the source code of this file.
Functions | |
| void | dbt_close (db_con_t *_h) |
| int | dbt_delete (db_con_t *_h, db_key_t *_k, db_op_t *_o, db_val_t *_v, int _n) |
| int | dbt_free_result (db_con_t *_h, db_res_t *_r) |
| db_con_t * | dbt_init (const str *_sqlurl) |
| int | dbt_insert (db_con_t *_h, db_key_t *_k, db_val_t *_v, int _n) |
| int | dbt_query (db_con_t *_h, db_key_t *_k, db_op_t *_op, db_val_t *_v, db_key_t *_c, int _n, int _nc, db_key_t _o, db_res_t **_r) |
| int | dbt_raw_query (db_con_t *_h, char *_s, db_res_t **_r) |
| int | dbt_update (db_con_t *_h, db_key_t *_k, db_op_t *_o, db_val_t *_v, db_key_t *_uk, db_val_t *_uv, int _n, int _un) |
| void dbt_close | ( | db_con_t * | _h | ) |
Definition at line 114 of file dbt_base.c.
References DBT_CON_RESULT, dbt_result_free(), LM_ERR, and pkg_free.
Referenced by dbt_bind_api().
Definition at line 442 of file dbt_base.c.
References CON_TABLE, DBT_CON_CONNECTION, dbt_db_get_table(), DBT_FL_SET, dbt_get_refs(), dbt_release_table(), dbt_row_free(), dbt_row_match(), dbt_table_free_rows(), dbt_table_update_flags(), DBT_TBFL_MODI, len, LM_DBG, LM_ERR, _dbt_row::next, _dbt_table::nrrows, NULL, pkg_free, _dbt_row::prev, _dbt_table::rows, and s.
Referenced by dbt_bind_api().
Definition at line 133 of file dbt_base.c.
References db_free_result(), DBT_CON_RESULT, dbt_result_free(), LM_ERR, and NULL.
Referenced by dbt_bind_api().
Definition at line 51 of file dbt_base.c.
References CFG_DIR, dbt_cache_get_db(), DBT_CON_CONNECTION, DBT_ID, DBT_ID_LEN, DBT_PATH_LEN, _str::len, LM_ERR, LM_INFO, NULL, pkg_malloc, _str::s, and db_con_t::tail.
Referenced by dbt_bind_api().
Definition at line 340 of file dbt_base.c.
References _dbt_table::colv, CON_TABLE, DB_STRING, DBT_CON_CONNECTION, dbt_db_get_table(), dbt_get_refs(), dbt_is_neq_type(), dbt_release_table(), dbt_row_free(), dbt_row_new(), dbt_row_set_val(), dbt_table_add_row(), _str::len, len, LM_ERR, _dbt_table::nrcols, NULL, pkg_free, s, db_val_t::str_val, db_val_t::string_val, db_val_t::type, _dbt_column::type, and db_val_t::val.
Referenced by dbt_bind_api().
| int dbt_query | ( | db_con_t * | _h, | |
| db_key_t * | _k, | |||
| db_op_t * | _op, | |||
| db_val_t * | _v, | |||
| db_key_t * | _c, | |||
| int | _n, | |||
| int | _nc, | |||
| db_key_t | _o, | |||
| db_res_t ** | _r | |||
| ) |
Definition at line 170 of file dbt_base.c.
References CON_TABLE, DBT_CON_CONNECTION, DBT_CON_RESULT, dbt_db_get_table(), DBT_FL_IGN, dbt_get_refs(), dbt_get_result(), dbt_mangle_columnselection(), dbt_parse_orderbyclause(), dbt_project_result(), dbt_release_table(), dbt_result_extract_fields(), dbt_result_free(), dbt_result_new(), dbt_row_match(), dbt_sort_result(), dbt_table_update_flags(), DBT_TBFL_ZERO, len, LM_DBG, LM_ERR, _dbt_row::next, _dbt_table::nrcols, _dbt_result::nrrows, NULL, pkg_free, _dbt_table::rows, and s.
Referenced by dbt_bind_api().
| int dbt_update | ( | db_con_t * | _h, | |
| db_key_t * | _k, | |||
| db_op_t * | _o, | |||
| db_val_t * | _v, | |||
| db_key_t * | _uk, | |||
| db_val_t * | _uv, | |||
| int | _n, | |||
| int | _un | |||
| ) |
Definition at line 519 of file dbt_base.c.
References _dbt_table::colv, CON_TABLE, DBT_CON_CONNECTION, dbt_db_get_table(), DBT_FL_SET, dbt_get_refs(), dbt_is_neq_type(), dbt_release_table(), dbt_row_match(), dbt_row_update_val(), dbt_table_update_flags(), DBT_TBFL_MODI, len, LM_ERR, _dbt_row::next, NULL, pkg_free, _dbt_table::rows, s, db_val_t::type, and _dbt_column::type.
Referenced by dbt_bind_api().
1.5.6