dbd/sqlite3/dbd_sqlite3.h

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