mirror of
https://github.com/aljazceru/turso.git
synced 2026-01-27 20:04:23 +01:00
Remove VTabModule methods delegating directly to VTabCursor
This commit is contained in:
@@ -79,18 +79,6 @@ impl VTabModule for CompletionVTab {
|
||||
Ok(CompletionCursor::default())
|
||||
}
|
||||
|
||||
fn column(cursor: &Self::VCursor, idx: u32) -> Result<Value, ResultCode> {
|
||||
cursor.column(idx)
|
||||
}
|
||||
|
||||
fn next(cursor: &mut Self::VCursor) -> ResultCode {
|
||||
cursor.next()
|
||||
}
|
||||
|
||||
fn eof(cursor: &Self::VCursor) -> bool {
|
||||
cursor.eof()
|
||||
}
|
||||
|
||||
fn filter(cursor: &mut Self::VCursor, args: &[Value], _: Option<(&str, i32)>) -> ResultCode {
|
||||
if args.is_empty() || args.len() > 2 {
|
||||
return ResultCode::InvalidArgs;
|
||||
@@ -122,7 +110,7 @@ impl VTabModule for CompletionVTab {
|
||||
cursor.rowid = 0;
|
||||
cursor.phase = CompletionPhase::Keywords;
|
||||
|
||||
Self::next(cursor)
|
||||
cursor.next()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user