File: sqlbox_sql.c

package info (click to toggle)
kannel 1.4.5-22
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 16,284 kB
  • sloc: ansic: 105,659; sh: 32,211; xml: 20,360; php: 1,103; perl: 711; makefile: 583; yacc: 548; awk: 133; python: 122; javascript: 27; pascal: 3
file content (51 lines) | stat: -rw-r--r-- 1,007 bytes parent folder | download | duplicates (9)
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;
}