dbd/sqlite3/dbd_sqlite3.h

Mon, 20 Dec 2010 23:03:00 +0000

author
nrich@ii.net
date
Mon, 20 Dec 2010 23:03:00 +0000
changeset 43
356dcb1d455c
parent 41
e490414a391d
permissions
-rw-r--r--

Use SQLite built in mechanism for tracking transactions

#include <sqlite3.h>
#include <dbd/common.h>

#define DBD_SQLITE_CONNECTION	"DBD.SQLite3.Connection"
#define DBD_SQLITE_STATEMENT	"DBD.SQLite3.Statement"

/*
 * connection object
 */
typedef struct _connection {
    sqlite3 *sqlite;
    int autocommit;
//    int txn_in_progress;
} connection_t;

/*
 * statement object
 */
typedef struct _statement {
    connection_t *conn;
    sqlite3_stmt *stmt;
    int more_data;
    int affected;
} statement_t;

mercurial