From ff5bd6a0c5db4c8f62f37e1ea9ce8d53d8f453ef Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sat, 19 Mar 2022 16:36:07 +0100 Subject: select: Idea for column exclusion --- src/select.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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 { -- cgit v1.2.3