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

@ -149,7 +149,7 @@ mod test {
connection
.prepare("INSERT INTO text (text) VALUES (?);")
.unwrap()
.bind(text)
.with_bindings(text)
.unwrap()
.exec()
.unwrap();
@ -185,8 +185,16 @@ mod test {
.prepare("INSERT INTO test (text, integer, blob) VALUES (?, ?, ?)")
.unwrap();
insert.bind(tuple1.clone()).unwrap().exec().unwrap();
insert.bind(tuple2.clone()).unwrap().exec().unwrap();
insert
.with_bindings(tuple1.clone())
.unwrap()
.exec()
.unwrap();
insert
.with_bindings(tuple2.clone())
.unwrap()
.exec()
.unwrap();
assert_eq!(
connection