aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorTeddy Wing2022-03-20 01:31:45 +0100
committerTeddy Wing2022-03-20 01:31:45 +0100
commitf30a4dafa5736c58bda54569ec9f46e6fdb2e200 (patch)
tree161f52d74139a2e2721bf7b3110a78d32bc63a5b /src/main.rs
parent2a0182af66a64756eaa88d64e44a18ee5fb94bce (diff)
downloadyaqlite-f30a4dafa5736c58bda54569ec9f46e6fdb2e200.tar.bz2
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.
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs2
1 files changed, 2 insertions, 0 deletions
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(),
};