return TRUE;
}
+gboolean
+db_transaction_begin(sqlite3 *db)
+{
+return db_exec_sql(db, "begin;");
+}
+
+gboolean
+db_transaction_commit(sqlite3 *db)
+{
+return db_exec_sql(db, "commit;");
+}
+
/**
* Connect to given sqlite database
*
return TRUE;
}
-
-
gboolean db_exec_sql(sqlite3 *db, const gchar *sql);
gboolean db_exec(sqlite3 *db, sqlite3_stmt *sql);
+gboolean db_transaction_begin(sqlite3 *db);
+gboolean db_transaction_commit(sqlite3 *db);
+
void db_create_tables(sqlite3 *db);
void db_create_indexes(sqlite3 *db);