MCPcopy Create free account
hub / github.com/asg017/sqlite-loadable-rs / rust_commit

Function rust_commit

src/table.rs:1145–1154  ·  view source on GitHub ↗

TODO set error message properly

(vtab: *mut sqlite3_vtab)

Source from the content-addressed store, hash-verified

1143/// <https://www.sqlite.org/vtab.html#the_xcommit_method>
1144// TODO set error message properly
1145unsafe extern "C" fn rust_commit<'vtab, T: 'vtab>(vtab: *mut sqlite3_vtab) -> c_int
1146where
1147 T: VTabWriteableWithTransactions<'vtab>,
1148{
1149 let vt = vtab.cast::<T>();
1150 match (*vt).commit() {
1151 Ok(_) => SQLITE_OKAY,
1152 Err(err) => err.code(),
1153 }
1154}
1155
1156/// <https://www.sqlite.org/vtab.html#the_xfindfunction_method>
1157// TODO set error message properly

Callers

nothing calls this directly

Calls 1

codeMethod · 0.80

Tested by

no test coverage detected