aboutsummaryrefslogtreecommitdiffstats
path: root/src/sqlite.rs
diff options
context:
space:
mode:
authorTeddy Wing2022-03-19 00:37:32 +0100
committerTeddy Wing2022-03-19 00:37:32 +0100
commitd78addd46aa7633346c47dd310c972ef0e9029fa (patch)
tree794fc485f65b19a29e8162866c05de22f233d7fc /src/sqlite.rs
parent052e0e9639e15a4cce5cb5f0ec6399ed195ebb90 (diff)
downloadyaqlite-d78addd46aa7633346c47dd310c972ef0e9029fa.tar.bz2
select(): Build a `yaml_rust::yaml::Hash` for each row
Instead of my earlier `std::collections::HashMap`, build the type we want to return directly in the row closure. Required copying some data like the column names, but I don't see a way around that. I suppose we could make `yaml_rust::Yaml`s from the column headers in the row closure too instead of copying an existing column header that we otherwise never use. This nearly passes the test I have for this function, but it includes the `id` column in the `Yaml` hash. The primary key column will need to be removed.
Diffstat (limited to 'src/sqlite.rs')
0 files changed, 0 insertions, 0 deletions