1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
|
#define sqlbox_sql_c
#include "sqlbox_sql.h"
struct server_type *sqlbox_init_sql(Cfg *cfg)
{
struct server_type *res = NULL;
#ifdef HAVE_MSSQL
res = (struct server_type *)sqlbox_init_mssql(cfg);
if (res) {
return res;
}
#endif
#ifdef HAVE_MYSQL
res = (struct server_type *)sqlbox_init_mysql(cfg);
if (res) {
return res;
}
#endif
#ifdef HAVE_ORACLE
res = (struct server_type *)sqlbox_init_oracle(cfg);
if (res) {
return res;
}
#endif
#ifdef HAVE_PGSQL
res = (struct server_type *)sqlbox_init_pgsql(cfg);
if (res) {
return res;
}
#endif
#ifdef HAVE_SDB
res = (struct server_type *)sqlbox_init_sdb(cfg);
if (res) {
return res;
}
#endif
#ifdef HAVE_SQLITE
res = (struct server_type *)sqlbox_init_sqlite(cfg);
if (res) {
return res;
}
#endif
#ifdef HAVE_SQLITE3
res = (struct server_type *)sqlbox_init_sqlite3(cfg);
if (res) {
return res;
}
#endif
return res;
}
|