acl
3.5.3.0
|
#include <sqlite_pool.hpp>
Public 成员函数 | |
sqlite_pool (const char *dbfile, size_t dblimit=64, const char *charset="utf-8") | |
~sqlite_pool () | |
Public 成员函数 继承自 acl::db_pool | |
db_pool (const char *dbaddr, size_t count, size_t idx=0) | |
virtual | ~db_pool () |
db_handle * | peek_open () |
size_t | get_dblimit () const |
size_t | get_dbcount () const |
void | set_idle (int ttl) |
Public 成员函数 继承自 acl::connect_pool | |
connect_pool (const char *addr, size_t max, size_t idx=0) | |
virtual | ~connect_pool () |
connect_pool & | set_timeout (int conn_timeout, int rw_timeout) |
connect_pool & | set_retry_inter (int retry_inter) |
connect_pool & | set_idle_ttl (time_t ttl) |
connect_pool & | set_check_inter (int n) |
connect_client * | peek (bool on=true) |
void | bind_one (connect_client *conn) |
void | put (connect_client *conn, bool keep=true) |
int | check_idle (time_t ttl, bool exclusive=true) |
void | set_alive (bool ok) |
bool | aliving () |
const char * | get_addr () const |
size_t | get_max () const |
size_t | get_count () const |
size_t | get_idx () const |
void | reset_statistics (int inter) |
unsigned long long | get_total_used () const |
unsigned long long | get_current_used () const |
void | set_key (const char *key) |
const char * | get_key (void) const |
Protected 成员函数 | |
connect_client * | create_connect () |
Protected 成员函数 继承自 acl::connect_pool | |
void | set_delay_destroy () |
Protected 成员函数 继承自 acl::acl::noncopyable | |
noncopyable () | |
~noncopyable () | |
额外继承的成员函数 | |
Protected 属性 继承自 acl::connect_pool | |
bool | alive_ |
bool | delay_destroy_ |
int | retry_inter_ |
time_t | last_dead_ |
char | key_ [256] |
char | addr_ [256] |
int | conn_timeout_ |
int | rw_timeout_ |
size_t | idx_ |
size_t | max_ |
size_t | count_ |
time_t | idle_ttl_ |
time_t | last_check_ |
int | check_inter_ |
locker | lock_ |
unsigned long long | total_used_ |
unsigned long long | current_used_ |
time_t | last_ |
std::list< connect_client * > | pool_ |
在文件 sqlite_pool.hpp 第 11 行定义.
acl::sqlite_pool::sqlite_pool | ( | const char * | dbfile, |
size_t | dblimit = 64 , |
||
const char * | charset = "utf-8" |
||
) |
构造函数
dbfile | {const char*} sqlite 数据库的数据文件 |
dblimit | {size_t} 数据库连接池最大连接数限制 |
charset | {const char*} 数据文件名字符集 |
acl::sqlite_pool::~sqlite_pool | ( | ) |
|
protectedvirtual |
实现了 acl::connect_pool.