9 Commits

Author SHA1 Message Date
Jacob Hinkle
e5fa7a32f2 Rename "store" to "dataset" in schema 2022-11-09 12:48:06 -05:00
Jacob Hinkle
12b669d591 Run cargo fmt 2022-10-27 15:23:52 -04:00
Jacob Hinkle
feab22026d Clean up interface to Program::perform_task() 2022-10-27 15:23:13 -04:00
Jacob Hinkle
88dd2bc220 Fix error handling and common path search in find_dataset_dir 2022-10-27 10:37:16 -04:00
Jacob Hinkle
a38bc78093 Start on find_dataset_dir. Format with cargo fmt 2022-10-26 15:00:39 -04:00
Jacob Hinkle
3556590f7b Work out using rusqlite and migrations.
This is a big commit where I learned how to do proper error tracking,
including handling From properly, and deriving it in some cases. The
record subcommand still is not implemented but will be easier now that I
decided to use SQLite temp tables as my data structure. This means I can
simply implement a few loops in the fs submodule in order to scan
directories, and dump entries into temp tables. When finished, I'll drop
the tables. This is nice because SQLite already contains a very
efficient BTree implementation that we can use with indices on these
temp tables. It also means we don't have to hold possibly millions of
directory entries in memory, and most importantly, we don't have to
figure out a bidirectional tree structure in rust.
2022-10-26 12:37:47 -04:00
Jacob Hinkle
afb2fae01b First working query of store_uuid 2022-10-14 12:53:33 -04:00
dc2edcf0a3 Add log/env_logger, empty store module 2022-10-13 12:55:27 -04:00
4cd3b71839 Initial skeleton with lib and cli 2022-10-13 10:16:10 -04:00