diff options
Diffstat (limited to 'src/sqlite.rs')
| -rw-r--r-- | src/sqlite.rs | 10 | 
1 files changed, 1 insertions, 9 deletions
| diff --git a/src/sqlite.rs b/src/sqlite.rs index 1e3aeec..ba3c19d 100644 --- a/src/sqlite.rs +++ b/src/sqlite.rs @@ -1,16 +1,8 @@  use rusqlite; -use thiserror;  use std::collections::HashMap; -#[derive(thiserror::Error, Debug)] -pub enum SqliteError { -    #[error("SQL error")] -    Sqlite(#[from] rusqlite::Error), -} - -  /// Get the fundamental SQLite datatype for a given type name.  ///  /// Use the SQLite rules for type affinity described in: @@ -51,7 +43,7 @@ pub struct Zero;  pub fn get_column_names(      dbconn: &rusqlite::Connection,      table_name: &str, -) -> Result<HashMap<String, Zero>, SqliteError> { +) -> Result<HashMap<String, Zero>, crate::Error> {      let mut column_names = HashMap::new();      let mut stmt = dbconn.prepare( | 
