moonfire-nvr/db
Scott Lamb b17761e871 move list_recordings_by_* logic into raw.rs
I want to start having the db.rs version augment this with the uncommitted
recordings, and it's nice to have the separation of the raw db vs augmented
versions. Also, this fits with the general theme of shrinking db.rs a bit.

I had to put the raw video_sample_entry_id into the rows rather than
the video_sample_entry Arc. In hindsight, this is better anyway: the common
callers don't need to do the btree lookup and arc clone on every row. I think
I'd originally done it that way only because I was quite new to rust and
didn't understand that db could be used from within the row callback given
that both borrows are immutable.
2018-03-01 20:59:05 -08:00
..
testdata initial split of database to a separate crate 2018-02-20 23:15:39 -08:00
upgrade refine 1->3 upgrade process 2018-03-01 09:47:56 -08:00
Cargo.toml initial split of database to a separate crate 2018-02-20 23:15:39 -08:00
check.rs update "moonfire-nvr check" for new schema 2018-03-01 17:07:42 -08:00
coding.rs initial split of database to a separate crate 2018-02-20 23:15:39 -08:00
db.rs move list_recordings_by_* logic into raw.rs 2018-03-01 20:59:05 -08:00
dir.rs update "moonfire-nvr check" for new schema 2018-03-01 17:07:42 -08:00
lib.rs update "moonfire-nvr check" for new schema 2018-03-01 17:07:42 -08:00
raw.rs move list_recordings_by_* logic into raw.rs 2018-03-01 20:59:05 -08:00
recording.rs move list_recordings_by_* logic into raw.rs 2018-03-01 20:59:05 -08:00
schema.proto more safety around adding/deleting dirs 2018-03-01 12:24:32 -08:00
schema.rs initial split of database to a separate crate 2018-02-20 23:15:39 -08:00
schema.sql move open_id from recording_playback to recording 2018-02-28 20:52:43 -08:00
testutil.rs properly account for bytes to add with next flush 2018-03-01 13:50:59 -08:00