From f30a4dafa5736c58bda54569ec9f46e6fdb2e200 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sun, 20 Mar 2022 01:31:45 +0100 Subject: select(): Allow columns to be excluded from YAML output hash Instead of only excluding the primary key column, exclude any columns in the given list. This allows us to pass a list of excluded columns on the command line. --- src/main.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index c21dee4..0fe52aa 100644 --- a/src/main.rs +++ b/src/main.rs @@ -85,12 +85,14 @@ fn main() { &table_name, &pk, &record_id, + &exclude_column, ).unwrap(), None => yaqlite::select( &dbconn, &table_name, &record_id, + &exclude_column, ).unwrap(), }; -- cgit v1.2.3