WIP almost compiling with sqlez
This commit is contained in:
parent
777f05eb76
commit
3c1b747f64
8 changed files with 77 additions and 57 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue