From 8b5f871386d35c60f6b3fd1d247488f0de9da4d9 Mon Sep 17 00:00:00 2001 From: gwenn Date: Thu, 11 Feb 2016 21:47:47 +0100 Subject: [PATCH] Add some missing doc --- src/vtab/csvtab.rs | 1 + src/vtab/int_array.rs | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/src/vtab/csvtab.rs b/src/vtab/csvtab.rs index b97b3d0..2b4d63a 100644 --- a/src/vtab/csvtab.rs +++ b/src/vtab/csvtab.rs @@ -11,6 +11,7 @@ use ffi; use types::Null; use vtab::{declare_vtab, escape_double_quote, VTab, VTabCursor}; +/// Register the "csv" module. pub fn load_module(conn: &Connection) -> Result<()> { let aux: Option<()> = None; conn.create_module("csv", &CSV_MODULE, aux) diff --git a/src/vtab/int_array.rs b/src/vtab/int_array.rs index 42b6356..70afb15 100644 --- a/src/vtab/int_array.rs +++ b/src/vtab/int_array.rs @@ -9,6 +9,11 @@ use {Connection, Error, Result}; use ffi; use vtab::{declare_vtab, escape_double_quote, VTab, VTabCursor}; +/// Create a specific instance of an intarray object. +/// The new intarray object is returned. +/// +/// Each intarray object corresponds to a virtual table in the TEMP table +/// with the specified `name`. pub fn create_int_array(conn: &Connection, name: &str) -> Result>>> { let array = Rc::new(RefCell::new(Vec::new())); try!(conn.create_module(name, &INT_ARRAY_MODULE, Some(array.clone()))); @@ -17,6 +22,9 @@ pub fn create_int_array(conn: &Connection, name: &str) -> Result Result<()> { conn.execute_batch(&format!("DROP TABLE temp.\"{0}\"", escape_double_quote(name)))