mirror of
https://github.com/fluencelabs/sqlite-wasm-connector
synced 2025-06-27 22:11:32 +00:00
Make execute and statement take immutable self
This commit is contained in:
@ -18,7 +18,7 @@ fn workflow() {
|
||||
);
|
||||
|
||||
let (path, _directory) = setup();
|
||||
let mut database = ok!(sqlite::open(&path));
|
||||
let database = ok!(sqlite::open(&path));
|
||||
|
||||
let sql = r#"CREATE TABLE `users` (id INTEGER, name VARCHAR(255), age REAL);"#;
|
||||
ok!(database.execute(sql, None));
|
||||
@ -58,7 +58,7 @@ fn workflow() {
|
||||
#[test]
|
||||
fn failure() {
|
||||
let (path, _directory) = setup();
|
||||
let mut database = ok!(sqlite::open(&path));
|
||||
let database = ok!(sqlite::open(&path));
|
||||
match database.execute(":)", None) {
|
||||
Err(error) => assert_eq!(error.message, Some(String::from(r#"unrecognized token: ":""#))),
|
||||
_ => assert!(false),
|
||||
|
Reference in New Issue
Block a user