Introduce context module

To make `set_result` and `report_error` in functions module
visible to vtab module.
This commit is contained in:
gwenn
2018-05-13 11:28:56 +02:00
parent f4beb18904
commit 6cbeb6ef59
7 changed files with 25 additions and 137 deletions

View File

@@ -65,11 +65,7 @@ impl VTab for SeriesTab {
type Aux = ();
type Cursor = SeriesTabCursor;
unsafe fn connect(
db: *mut ffi::sqlite3,
_aux: *mut (),
_args: &[&[u8]],
) -> Result<SeriesTab> {
unsafe fn connect(db: *mut ffi::sqlite3, _aux: *mut (), _args: &[&[u8]]) -> Result<SeriesTab> {
let vtab = SeriesTab {
base: Default::default(),
};