From 6a822f1cd3e6b854f51f3cba59f65007b408cac3 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sat, 12 Mar 2022 21:29:04 +0100 Subject: get_column_names(): Remove irrelevant comments --- src/main.rs | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'src') diff --git a/src/main.rs b/src/main.rs index ae65cb7..3a65e3c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -107,7 +107,6 @@ struct Zero {} use std::collections::HashMap; -// TODO: We don't need to include the type in the HashMap. Go back to Zero. fn get_column_names(dbconn: &rusqlite::Connection) -> HashMap { let mut column_names = HashMap::new(); @@ -122,20 +121,6 @@ fn get_column_names(dbconn: &rusqlite::Connection) -> HashMap { ).unwrap(); for row_result in rows { - // TODO: Get the type of the column. - // $ sqlite3 -header test.db "select type from pragma_table_info(\"people\");" - // type - // text - // text - // text - // integer - // $ sqlite3 -header test.db "select type from pragma_table_info(\"test\");" - // type - // INTEGER - // TEXT - // DATETIME - // INTEGER - let row = row_result.unwrap(); column_names.insert(row, Zero{}); -- cgit v1.2.3