1
0
mirror of https://github.com/haiwen/ccnet-server.git synced 2025-09-04 22:30:36 +00:00

Rewrite database access layer.

This commit is contained in:
caixiangyue
2019-07-23 15:24:28 +08:00
parent 8c67ea353c
commit e7dea0a26b
18 changed files with 1114 additions and 3268 deletions

View File

@@ -195,7 +195,7 @@ static int init_mysql_database (CcnetSession *session)
#endif
#ifdef HAVE_POSTGRESQL
#if 0
static int init_pgsql_database (CcnetSession *session)
{
@@ -263,7 +263,7 @@ load_database_config (CcnetSession *session)
ret = init_mysql_database (session);
}
#endif
#ifdef HAVE_POSTGRESQL
#if 0
else if (strncasecmp (engine, DB_PGSQL, sizeof(DB_PGSQL)) == 0) {
ccnet_debug ("Use database PostgreSQL\n");
ret = init_pgsql_database (session);