This commit is contained in:
Max Lapshin
2009-10-14 09:23:53 +04:00
parent de53ecd1c0
commit d9bf2afaac
3 changed files with 17 additions and 4 deletions

View File

@@ -5,6 +5,12 @@
#include <sqlite3.h>
#include <erl_interface.h>
#if SQLITE_VERSION_NUMBER < 3006001
#error "SQLite3 of version 3.6.1 minumum required"
#endif
// Path to file where data will be stored.
// It will be created if it doesn't exist
#define DB_PATH "./store.db"
@@ -22,6 +28,7 @@ typedef struct sqlite3_drv_t {
ErlDrvPort port;
unsigned int key;
struct sqlite3 *db;
long async_handle;
} sqlite3_drv_t;
typedef struct async_sqlite3_command {