aboutsummaryrefslogtreecommitdiff
path: root/qlite/src/database.vala
diff options
context:
space:
mode:
Diffstat (limited to 'qlite/src/database.vala')
-rw-r--r--qlite/src/database.vala5
1 files changed, 4 insertions, 1 deletions
diff --git a/qlite/src/database.vala b/qlite/src/database.vala
index 0427df16..cc46ee21 100644
--- a/qlite/src/database.vala
+++ b/qlite/src/database.vala
@@ -77,6 +77,9 @@ public class Database {
meta_table.update().with(meta_name, "=", "version").set(meta_int_val, expected_version).perform();
}
}
+ foreach (Table t in tables) {
+ t.post();
+ }
}
internal int errcode() {
@@ -136,7 +139,7 @@ public class Database {
return statement;
}
- internal void exec(string sql) throws DatabaseError {
+ public void exec(string sql) throws DatabaseError {
ensure_init();
if (db.exec(sql) != OK) {
throw new DatabaseError.EXEC_ERROR(@"SQLite error: $(db.errcode()) - $(db.errmsg())");