aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2022-03-19 16:36:07 +0100
committerTeddy Wing2022-03-19 16:36:07 +0100
commitff5bd6a0c5db4c8f62f37e1ea9ce8d53d8f453ef (patch)
treec18773d93ff86c41c9d4a1ca0d87c6d730cf0f06
parentbb9f0ee38809ab0b41d66ced950c034101862a59 (diff)
downloadyaqlite-ff5bd6a0c5db4c8f62f37e1ea9ce8d53d8f453ef.tar.bz2
select: Idea for column exclusion
-rw-r--r--src/select.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/select.rs b/src/select.rs
index bf5a2c0..0ddc9db 100644
--- a/src/select.rs
+++ b/src/select.rs
@@ -46,6 +46,9 @@ pub fn select_by_column(
let mut data = yaml_rust::yaml::Hash::new();
for (i, column) in column_names.iter().enumerate() {
+ // TODO: Exclude "id" column separately in a subsequent "exclude
+ // columns" step.
+
// Don't include the primary key column in the resulting hash as
// it should not be editable.
if column == primary_key_column {