WIP almost compiling with sqlez

This commit is contained in:
Mikayla Maki 2022-11-01 17:26:03 -07:00
parent 777f05eb76
commit 3c1b747f64
8 changed files with 77 additions and 57 deletions

View file

@ -47,7 +47,7 @@ impl Migration {
WHERE domain = ?
ORDER BY step
"})?
.bind(self.domain)?
.with_bindings(self.domain)?
.rows::<(String, usize, String)>()?;
let mut store_completed_migration = connection
@ -72,7 +72,7 @@ impl Migration {
connection.exec(migration)?;
store_completed_migration
.bind((self.domain, index, *migration))?
.with_bindings((self.domain, index, *migration))?
.exec()?;
}
@ -163,7 +163,7 @@ mod test {
.unwrap();
store_completed_migration
.bind((domain, i, i.to_string()))
.with_bindings((domain, i, i.to_string()))
.unwrap()
.exec()
.unwrap();