Kannel: Open Source WAP and SMS gateway  $Revision: 5037 $
dbpool.h File Reference

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

DBPooldbpool_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)
 
DBPoolConndbpool_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)
 

Typedef Documentation

typedef struct DBPool DBPool

Definition at line 86 of file dbpool.h.

Enumeration Type Documentation

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.

Function Documentation

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 
)
DBPool* dbpool_create ( enum db_type  db_type,
DBConf conf,
unsigned int  connections 
)
unsigned int dbpool_decrease ( DBPool p,
unsigned int  conn 
)
void dbpool_destroy ( DBPool p)
unsigned int dbpool_increase ( DBPool p,
unsigned int  conn 
)
See file LICENSE for details about the license agreement for using, modifying, copying or deriving work from this software.