Method: UnQLite::Database#commit
- Defined in:
- ext/unqlite/unqlite_database.c
#commit ⇒ Object
147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 |
# File 'ext/unqlite/unqlite_database.c', line 147 static VALUE unqlite_database_commit(VALUE self) { int rc; unqliteRubyPtr ctx; // Get class context Data_Get_Struct(self, unqliteRuby, ctx); // Commit transaction rc = unqlite_commit(ctx->pDb); // Check for errors CHECK(ctx->pDb, rc); return Qtrue; } |