mirror of
				https://github.com/isar/rusqlite.git
				synced 2025-10-31 05:48:56 +08:00 
			
		
		
		
	Move declare_vtab into Module trait
This commit is contained in:
		| @@ -6,7 +6,7 @@ use std::rc::Rc; | ||||
|  | ||||
| use ffi; | ||||
| use types::{ToSql, ToSqlOutput, Value}; | ||||
| use vtab::{self, declare_vtab, Context, IndexInfo, Module, VTab, VTabCursor, Values}; | ||||
| use vtab::{self, Context, IndexInfo, Module, VTab, VTabCursor, Values}; | ||||
| use {Connection, Error, Result}; | ||||
|  | ||||
| // http://sqlite.org/bindptr.html | ||||
| @@ -66,7 +66,10 @@ impl Module for ArrayModule { | ||||
|         let vtab = ArrayTab { | ||||
|             base: Default::default(), | ||||
|         }; | ||||
|         try!(declare_vtab(db, "CREATE TABLE x(value,pointer hidden)")); | ||||
|         try!(ArrayModule::declare_vtab( | ||||
|             db, | ||||
|             "CREATE TABLE x(value,pointer hidden)" | ||||
|         )); | ||||
|         Ok(vtab) | ||||
|     } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user