TODO set error message properly
(vtab: *mut sqlite3_vtab)
| 1143 | /// <https://www.sqlite.org/vtab.html#the_xcommit_method> |
| 1144 | // TODO set error message properly |
| 1145 | unsafe extern "C" fn rust_commit<'vtab, T: 'vtab>(vtab: *mut sqlite3_vtab) -> c_int |
| 1146 | where |
| 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 |