1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-09-04 08:54:39 +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

@@ -9,8 +9,7 @@ mysql_db_conn_pool_new (const char *host,
const char *db_name,
const char *unix_socket,
gboolean use_ssl,
const char *charset,
int max_connections);
const char *charset);
void
mysql_db_conn_pool_free (DBConnPool *vpool);
@@ -21,6 +20,9 @@ mysql_get_db_connection (DBConnPool *vpool, GError **error);
void
mysql_db_connection_close (DBConnection *vconn);
gboolean
mysql_db_connection_ping (DBConnection *vconn);
gboolean
mysql_db_connection_execute (DBConnection *vconn, const char *sql, GError **error);