#include <db_service_sqlite.hpp>
|
| db_service_sqlite (const char *dbname, const char *dbfile, size_t dblimit=100, int nthread=2, bool win32_gui=false) |
|
| ~db_service_sqlite () |
|
| db_service (size_t dblimit=100, int nthread=2, bool win32_gui=false) |
|
virtual | ~db_service (void) |
|
void | sql_select (const char *sql, db_query *query) |
|
void | sql_update (const char *sql, db_query *query) |
|
void | push_back (db_handle *db) |
|
| ipc_service (int nthread, bool ipc_keep=true) |
|
virtual | ~ipc_service () |
|
ipc_client * | peek_conn () |
|
void | push_conn (ipc_client *conn) |
|
| ipc_server () |
|
virtual | ~ipc_server () |
|
bool | open (aio_handle *handle, const char *addr="127.0.0.1:0") |
|
const char * | get_addr () const |
|
aio_listen_stream * | get_stream () const |
|
aio_handle & | get_handle () const |
|
◆ db_service_sqlite()
acl::db_service_sqlite::db_service_sqlite |
( |
const char * |
dbname, |
|
|
const char * |
dbfile, |
|
|
size_t |
dblimit = 100 , |
|
|
int |
nthread = 2 , |
|
|
bool |
win32_gui = false |
|
) |
| |
当为 sqlite 数据库时的构造函数
- 参数
-
dbname | {const char*} 数据库名 |
dbfile | {const char*} 数据库文件名(对于一些内嵌数据库有用) |
dblimit | {size_t} 数据库连接池的个数限制 |
nthread | {int} 子线程池的最大线程数 |
win32_gui | {bool} 是否是窗口类的消息,如果是,则内部的 通讯模式自动设置为基于 _WIN32 的消息,否则依然采用通用的套接 口通讯方式 |
◆ ~db_service_sqlite()
acl::db_service_sqlite::~db_service_sqlite |
( |
| ) |
|
该类的文档由以下文件生成: