Module: DB_MYSQL :: the MySQL driver for Kamailio. More...
#include "../../db/db_pool.h"
#include "../../db/db_id.h"
#include <time.h>
#include <mysql/mysql.h>


Go to the source code of this file.
Data Structures | |
| struct | my_con |
Defines | |
| #define | CON_CONNECTION(db_con) (((struct my_con*)((db_con)->tail))->con) |
| #define | CON_RESULT(db_con) (((struct my_con*)((db_con)->tail))->res) |
| #define | CON_ROW(db_con) (((struct my_con*)((db_con)->tail))->row) |
| #define | CON_TIMESTAMP(db_con) (((struct my_con*)((db_con)->tail))->timestamp) |
Functions | |
| void | db_mysql_free_connection (struct pool_con *con) |
| Close the connection and release memory. | |
| struct my_con * | db_mysql_new_connection (const struct db_id *id) |
| Create a new connection structure, open the MySQL connection and set reference count to 1. | |
Module: DB_MYSQL :: the MySQL driver for Kamailio.
Definition in file my_con.h.
Definition at line 58 of file my_con.h.
Referenced by db_last_inserted_id(), db_mysql_convert_rows(), db_mysql_fetch_result(), db_mysql_get_columns(), db_mysql_store_result(), db_mysql_submit_query(), db_mysql_val2str(), db_postgres_fetch_result(), db_postgres_store_result(), db_postgres_submit_query(), db_postgres_val2str(), db_unixodbc_submit_query(), and reconnect().
Definition at line 57 of file my_con.h.
Referenced by db_mysql_convert_row(), db_mysql_convert_rows(), db_mysql_fetch_result(), db_mysql_free_result(), db_mysql_get_columns(), db_mysql_store_result(), db_postgres_convert_rows(), db_postgres_fetch_result(), db_postgres_free_query(), db_postgres_get_columns(), db_postgres_store_result(), db_unixodbc_convert_rows(), db_unixodbc_fetch_result(), db_unixodbc_free_result(), db_unixodbc_get_columns(), db_unixodbc_submit_query(), and reconnect().
Definition at line 59 of file my_con.h.
Referenced by db_mysql_convert_row(), db_mysql_convert_rows(), db_mysql_fetch_result(), db_unixodbc_convert_row(), db_unixodbc_convert_rows(), and db_unixodbc_fetch_result().
| void db_mysql_free_connection | ( | struct pool_con * | con | ) |
Close the connection and release memory.
Definition at line 137 of file my_con.c.
References my_con::con, free_db_id(), my_con::id, pkg_free, and my_con::res.
Referenced by db_mysql_close().
Create a new connection structure, open the MySQL connection and set reference count to 1.
Definition at line 43 of file my_con.c.
References my_con::con, db_id::database, db_mysql_auto_reconnect, db_mysql_timeout_interval, db_id::host, my_con::id, LM_DBG, LM_ERR, NULL, db_id::password, pkg_free, pkg_malloc, db_id::port, my_con::ref, my_con::timestamp, db_id::username, and ZSW.
Referenced by db_mysql_init().
1.5.6