Remove vtab() function from VTabCursor trait

This commit is contained in:
gwenn
2018-07-14 19:10:28 +02:00
parent e2df03f474
commit 0c371834aa
5 changed files with 5 additions and 15 deletions

View File

@@ -272,15 +272,16 @@ impl CSVTabCursor {
eof: false,
}
}
/// Accessor to the associated virtual table.
fn vtab(&self) -> &CSVTab {
unsafe { &*(self.base.pVtab as *const CSVTab) }
}
}
impl VTabCursor for CSVTabCursor {
type Table = CSVTab;
fn vtab(&self) -> &CSVTab {
unsafe { &*(self.base.pVtab as *const CSVTab) }
}
// Only a full table scan is supported. So `filter` simply rewinds to
// the beginning.
fn filter(&mut self, _idx_num: c_int, _idx_str: Option<&str>, _args: &Values) -> Result<()> {