mirror of
https://github.com/isar/rusqlite.git
synced 2025-12-17 08:52:25 +08:00
Rustfmt
This commit is contained in:
@@ -18,11 +18,19 @@ pub fn load_module(conn: &Connection) -> Result<()> {
|
||||
conn.create_module("csv", &CSV_MODULE, aux)
|
||||
}
|
||||
|
||||
init_module!(CSV_MODULE, CSVTab, CSVTabCursor,
|
||||
csv_create, csv_best_index, csv_destroy,
|
||||
csv_open, csv_close,
|
||||
csv_filter, csv_next, csv_eof,
|
||||
csv_column, csv_rowid);
|
||||
init_module!(CSV_MODULE,
|
||||
CSVTab,
|
||||
CSVTabCursor,
|
||||
csv_create,
|
||||
csv_best_index,
|
||||
csv_destroy,
|
||||
csv_open,
|
||||
csv_close,
|
||||
csv_filter,
|
||||
csv_next,
|
||||
csv_eof,
|
||||
csv_column,
|
||||
csv_rowid);
|
||||
|
||||
#[repr(C)]
|
||||
struct CSVTab {
|
||||
|
||||
@@ -29,11 +29,19 @@ pub fn drop_int_array(conn: &Connection, name: &str) -> Result<()> {
|
||||
conn.execute_batch(&format!("DROP TABLE temp.\"{0}\"", escape_double_quote(name)))
|
||||
}
|
||||
|
||||
init_module!(INT_ARRAY_MODULE, IntArrayVTab, IntArrayVTabCursor,
|
||||
int_array_create, int_array_best_index, int_array_destroy,
|
||||
int_array_open, int_array_close,
|
||||
int_array_filter, int_array_next, int_array_eof,
|
||||
int_array_column, int_array_rowid);
|
||||
init_module!(INT_ARRAY_MODULE,
|
||||
IntArrayVTab,
|
||||
IntArrayVTabCursor,
|
||||
int_array_create,
|
||||
int_array_best_index,
|
||||
int_array_destroy,
|
||||
int_array_open,
|
||||
int_array_close,
|
||||
int_array_filter,
|
||||
int_array_next,
|
||||
int_array_eof,
|
||||
int_array_column,
|
||||
int_array_rowid);
|
||||
|
||||
#[repr(C)]
|
||||
struct IntArrayVTab {
|
||||
|
||||
Reference in New Issue
Block a user