Introduces CreateVTab for non-eponymous VTab

This commit is contained in:
gwenn
2018-07-22 09:51:06 +02:00
parent b93b005604
commit b82a155429
2 changed files with 31 additions and 23 deletions

View File

@@ -11,8 +11,8 @@ use std::str;
use ffi;
use types::Null;
use vtab::{
dequote, escape_double_quote, parse_boolean, read_only_module, Context, IndexInfo, Module,
VTab, VTabConnection, VTabCursor, Values,
dequote, escape_double_quote, parse_boolean, read_only_module, Context, CreateVTab, IndexInfo,
Module, VTab, VTabConnection, VTabCursor, Values,
};
use {Connection, Error, Result};
@@ -249,6 +249,8 @@ impl VTab for CSVTab {
}
}
impl CreateVTab for CSVTab {}
/// A cursor for the CSV virtual table
#[repr(C)]
struct CSVTabCursor {