aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTeddy Wing2022-03-12 21:29:04 +0100
committerTeddy Wing2022-03-12 21:29:04 +0100
commit6a822f1cd3e6b854f51f3cba59f65007b408cac3 (patch)
tree1ee51bbfd17365527f9ebe14a3965fabf26f0950 /src
parent48457ecc2e6e85cfd38644c2d18858a24a7f78d0 (diff)
downloadyaqlite-6a822f1cd3e6b854f51f3cba59f65007b408cac3.tar.bz2
get_column_names(): Remove irrelevant comments
Diffstat (limited to 'src')
-rw-r--r--src/main.rs15
1 files changed, 0 insertions, 15 deletions
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<String, Zero> {
let mut column_names = HashMap::new();
@@ -122,20 +121,6 @@ fn get_column_names(dbconn: &rusqlite::Connection) -> HashMap<String, Zero> {
).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{});