public SQLiteDB() { #if !SQLITE_NATIVE db = null; stream = null; #else db = IntPtr.Zero; #endif }
public SQLiteDB() { Debug.Log("Success_ Jumpsnack is running SQLiteDB"); #if !SQLITE_NATIVE db = null; stream = null; #else db = IntPtr.Zero; #endif }
public void OpenStream(string name, Stream io) { if (db != null) { throw new Exception("Error database already open!"); } stream = Sqlite3.sqlite3_stream_create(name, io); if (Sqlite3.sqlite3_stream_register(stream) != Sqlite3.SQLITE_OK) { throw new IOException("Error with opening database with stream " + name + "!"); } if (Sqlite3.sqlite3_open_v2(name, out db, Sqlite3.SQLITE_OPEN_READWRITE, "stream") != Sqlite3.SQLITE_OK) { db = null; throw new IOException("Error with opening database with stream " + name + "!"); } }