Kannel: Open Source WAP and SMS gateway
svn-r5336
|
Go to the source code of this file.
Data Structures | |
struct | DBPoolConn |
struct | MySQLConf |
struct | MSSQLConf |
struct | OracleConf |
struct | SDBConf |
struct | SQLiteConf |
struct | SQLite3Conf |
struct | PgSQLConf |
struct | RedisConf |
struct | CassConf |
union | DBConf |
Typedefs | |
typedef struct DBPool | DBPool |
Enumerations | |
enum | db_type { DBPOOL_MYSQL, DBPOOL_SDB, DBPOOL_ORACLE, DBPOOL_SQLITE, DBPOOL_PGSQL, DBPOOL_SQLITE3, DBPOOL_MSSQL, DBPOOL_REDIS, DBPOOL_CASS } |
Functions | |
DBPool * | dbpool_create (enum db_type db_type, DBConf *conf, unsigned int connections) |
void | dbpool_destroy (DBPool *p) |
unsigned int | dbpool_increase (DBPool *p, unsigned int conn) |
unsigned int | dbpool_decrease (DBPool *p, unsigned int conn) |
long | dbpool_conn_count (DBPool *p) |
DBPoolConn * | dbpool_conn_consume (DBPool *p) |
void | dbpool_conn_produce (DBPoolConn *conn) |
int | dbpool_conn_select (DBPoolConn *conn, const Octstr *sql, List *binds, List **result) |
int | dbpool_conn_update (DBPoolConn *conn, const Octstr *sql, List *binds) |
unsigned int | dbpool_check (DBPool *p) |
enum db_type |
Enumerator | |
---|---|
DBPOOL_MYSQL | |
DBPOOL_SDB | |
DBPOOL_ORACLE | |
DBPOOL_SQLITE | |
DBPOOL_PGSQL | |
DBPOOL_SQLITE3 | |
DBPOOL_MSSQL | |
DBPOOL_REDIS | |
DBPOOL_CASS |
Definition at line 76 of file dbpool.h.
unsigned int dbpool_check | ( | DBPool * | p | ) |
DBPoolConn* dbpool_conn_consume | ( | DBPool * | p | ) |
long dbpool_conn_count | ( | DBPool * | p | ) |
void dbpool_conn_produce | ( | DBPoolConn * | conn | ) |
int dbpool_conn_select | ( | DBPoolConn * | conn, |
const Octstr * | sql, | ||
List * | binds, | ||
List ** | result | ||
) |
int dbpool_conn_update | ( | DBPoolConn * | conn, |
const Octstr * | sql, | ||
List * | binds | ||
) |
unsigned int dbpool_decrease | ( | DBPool * | p, |
unsigned int | conn | ||
) |
void dbpool_destroy | ( | DBPool * | p | ) |
unsigned int dbpool_increase | ( | DBPool * | p, |
unsigned int | conn | ||
) |