Breathe life back into this project. #1

Merged
gburd merged 22 commits from gburd/2018edition-fmt-fix-deps into master 2020-01-16 16:27:21 +00:00
Showing only changes of commit d6b3d1818a - Show all commits

View file

@ -326,7 +326,7 @@ fn create_current_partition_view(conn: &rusqlite::Connection) -> Result<()> {
pub fn create_current_version(conn: &mut rusqlite::Connection) -> Result<DB> { pub fn create_current_version(conn: &mut rusqlite::Connection) -> Result<DB> {
let (tx, mut db) = create_empty_current_version(conn)?; let (tx, mut db) = create_empty_current_version(conn)?;
// TODO: think more carefully about allocating new parts and bitmasking part ranges. // TODO: think more carefully about allocating new parts and bit-masking part ranges.
// TODO: install these using bootstrap assertions. It's tricky because the part ranges are implicit. // TODO: install these using bootstrap assertions. It's tricky because the part ranges are implicit.
// TODO: one insert, chunk into 999/3 sections, for safety. // TODO: one insert, chunk into 999/3 sections, for safety.
// This is necessary: `transact` will only UPDATE parts, not INSERT them if they're missing. // This is necessary: `transact` will only UPDATE parts, not INSERT them if they're missing.
@ -338,7 +338,7 @@ pub fn create_current_version(conn: &mut rusqlite::Connection) -> Result<DB> {
part, part,
&partition.start.to_string(), &partition.start.to_string(),
&partition.end.to_string(), &partition.end.to_string(),
&partition.allow_excision.to_string(), &(partition.allow_excision as i8).to_string(),
], ],
)?; )?;
} }