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:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user