File: dbd_sqlite3.h

package info (click to toggle)
lua-dbi 0.7.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 448 kB
  • sloc: ansic: 3,946; sql: 291; makefile: 129
file content (24 lines) | stat: -rw-r--r-- 413 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#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;
} connection_t;

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