1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-09-08 10:48:52 +00:00

Add connection pool for db.

This commit is contained in:
Jiaqiang Xu
2016-08-20 14:58:51 +08:00
parent 6a5e0804b9
commit f52ffdfb23
19 changed files with 145 additions and 91 deletions

View File

@@ -2,7 +2,7 @@
#define SQLITE_DB_OPS_H
DBConnPool *
sqlite_db_conn_pool_new (const char *db_path, int max_connections);
sqlite_db_conn_pool_new (const char *db_path);
void
sqlite_db_conn_pool_free (DBConnPool *vpool);
@@ -13,6 +13,9 @@ sqlite_get_db_connection (DBConnPool *vpool, GError **error);
void
sqlite_db_connection_close (DBConnection *vconn);
gboolean
sqlite_db_connection_ping (DBConnection *vconn);
gboolean
sqlite_db_connection_execute (DBConnection *vconn, const char *sql, GError **error);