moonfire-nvr/db/upgrade
Scott Lamb e52e725958 s/std::fs::read_dir/nix::dir::Dir/ in a few spots
This is nicer in a few ways:

   * I can use openat so there's no possibility of any kind of a race
     involving scanning a different directory than the one used in
     other ways (locking, metadata file, adding/removing sample files)
   * filename() doesn't need to allocate memory, so it's a bit more
     efficient
   * dogfooding - I wrote nix::dir.
2019-07-12 11:07:14 -07:00
..
mod.rs schema comparison in new upgrade tests, "moonfire-nvr check" 2019-07-11 13:31:33 -07:00
v0_to_v1.rs schema comparison in new upgrade tests, "moonfire-nvr check" 2019-07-11 13:31:33 -07:00
v0.sql schema comparison in new upgrade tests, "moonfire-nvr check" 2019-07-11 13:31:33 -07:00
v1_to_v2.rs s/std::fs::read_dir/nix::dir::Dir/ in a few spots 2019-07-12 11:07:14 -07:00
v1.sql schema comparison in new upgrade tests, "moonfire-nvr check" 2019-07-11 13:31:33 -07:00
v2_to_v3.rs use nix to remove many uses of unsafe 2019-07-11 21:59:01 -07:00
v3_to_v4.rs schema comparison in new upgrade tests, "moonfire-nvr check" 2019-07-11 13:31:33 -07:00
v3.sql schema comparison in new upgrade tests, "moonfire-nvr check" 2019-07-11 13:31:33 -07:00
v4_to_v5.rs s/std::fs::read_dir/nix::dir::Dir/ in a few spots 2019-07-12 11:07:14 -07:00