#include "../../db/db.h"#include "../../parser/msg_parser.h"#include "../../str.h"#include "../../sr_module.h"#include "../../pvar.h"


Go to the source code of this file.
Data Structures | |
| struct | db_scheme |
Functions | |
| int | avp_add_db_scheme (modparam_t type, void *val) |
| struct db_scheme * | avp_get_db_scheme (str *name) |
| int | avpops_db_bind (const str *db_url) |
| int | avpops_db_init (const str *db_url, const str *db_table, str **db_columns) |
| void | db_close_query (db_res_t *res) |
| int | db_delete_avp (str *uuid, str *username, str *domain, char *attr, const str *table) |
| db_res_t * | db_load_avp (str *uuid, str *username, str *domain, char *attr, const str *table, struct db_scheme *scheme) |
| int | db_query_avp (struct sip_msg *msg, char *query, pvname_list_t *dest) |
| int | db_store_avp (db_key_t *keys, db_val_t *vals, int n, const str *table) |
| int avp_add_db_scheme | ( | modparam_t | type, | |
| void * | val | |||
| ) |
Definition at line 102 of file avpops_db.c.
References avp_get_db_scheme(), db_scheme::db_flags, db_scheme::domain_col, _str::len, LM_DBG, LM_ERR, db_scheme::name, db_scheme::next, parse_avp_db_scheme(), pkg_malloc, _str::s, db_scheme::table, db_scheme::username_col, db_scheme::uuid_col, and db_scheme::value_col.
Definition at line 149 of file avpops_db.c.
References _str::len, db_scheme::name, db_scheme::next, and _str::s.
Referenced by avp_add_db_scheme(), and parse_avp_db().
| int avpops_db_bind | ( | const str * | db_url | ) |
Definition at line 52 of file avpops_db.c.
References db_bind_mod(), DB_CAP_ALL, DB_CAPABILITY, and LM_CRIT.
Referenced by avpops_init().
Definition at line 73 of file avpops_db.c.
References db_func::close, db_func::init, _str::len, LM_ERR, _str::s, and db_func::use_table.
Referenced by avpops_child_init().
| void db_close_query | ( | db_res_t * | res | ) |
Definition at line 269 of file avpops_db.c.
References db_func::free_result, and LM_DBG.
Referenced by db_query_avp(), and ops_dbload_avps().
Definition at line 293 of file avpops_db.c.
References db_func::delete, prepare_selection(), and set_table().
Referenced by ops_dbdelete_avps().
| db_res_t* db_load_avp | ( | str * | uuid, | |
| str * | username, | |||
| str * | domain, | |||
| char * | attr, | |||
| const str * | table, | |||
| struct db_scheme * | scheme | |||
| ) |
Definition at line 232 of file avpops_db.c.
References NULL, prepare_selection(), db_func::query, _str::s, set_table(), db_scheme::table, and db_scheme::value_col.
Referenced by ops_dbload_avps().
| int db_query_avp | ( | struct sip_msg * | msg, | |
| char * | query, | |||
| pvname_list_t * | dest | |||
| ) |
Definition at line 312 of file avpops_db.c.
References add_avp(), AVP_VAL_STR, DB_BITMAP, DB_BLOB, db_close_query(), DB_DATETIME, DB_INT, DB_STR, DB_STRING, _str::len, LM_DBG, LM_ERR, int_str::n, _pvname_list::next, NULL, pv_get_avp_name(), _pv_spec::pvp, db_func::raw_query, RES_COL_N, RES_ROW_N, RES_ROWS, int_str::s, _str::s, and _pvname_list::sname.
Referenced by ops_dbquery_avps().
Definition at line 276 of file avpops_db.c.
References db_func::insert, LM_ERR, and set_table().
Referenced by ops_dbstore_avps().
1.5.6