2 #include <dbd/common.h> |
2 #include <dbd/common.h> |
3 |
3 |
4 #define DBD_SQLITE_CONNECTION "DBD.SQLite3.Connection" |
4 #define DBD_SQLITE_CONNECTION "DBD.SQLite3.Connection" |
5 #define DBD_SQLITE_STATEMENT "DBD.SQLite3.Statement" |
5 #define DBD_SQLITE_STATEMENT "DBD.SQLite3.Statement" |
6 |
6 |
|
7 /* |
|
8 * connection object |
|
9 */ |
7 typedef struct _connection { |
10 typedef struct _connection { |
8 sqlite3 *sqlite; |
11 sqlite3 *sqlite; |
9 } connection_t; |
12 } connection_t; |
10 |
13 |
|
14 /* |
|
15 * statement object |
|
16 */ |
11 typedef struct _statement { |
17 typedef struct _statement { |
12 sqlite3_stmt *stmt; |
18 sqlite3_stmt *stmt; |
13 sqlite3 *sqlite; |
19 sqlite3 *sqlite; |
14 int more_data; |
20 int more_data; |
15 } statement_t; |
21 } statement_t; |