From e9fa29a7c7852caa27be2e5e0f3f7d45e2be5eed Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sun, 13 Mar 2022 13:57:48 +0100 Subject: main(): Idea for custom column selection --- src/main.rs | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index c7bfc95..8dd9957 100644 --- a/src/main.rs +++ b/src/main.rs @@ -27,7 +27,12 @@ enum Command { table_name: String, + #[clap(long)] + primary_key: Option, record_id: String, + + #[clap(long)] + exclude_column: Vec, }, } @@ -68,7 +73,15 @@ fn main() { Command::Select { database, table_name, + primary_key, record_id, - } => {}, + exclude_column, + } => { + let dbconn = rusqlite::Connection::open(database).unwrap(); + + yaqlite::select(&dbconn, &table_name, &record_id); + + dbconn.close().unwrap(); + }, }; } -- cgit v1.2.3