Make execute and statement take immutable self

This commit is contained in:
Ivan Ukhov
2015-06-01 16:27:09 -04:00
parent c5c87066e9
commit 0e6ee0c10d
6 changed files with 10 additions and 10 deletions

View File

@ -4,7 +4,7 @@ use std::path::PathBuf;
fn main() {
let path = setup();
let mut database = sqlite::open(&path).unwrap();
let database = sqlite::open(&path).unwrap();
database.execute(r#"
CREATE TABLE `users` (id INTEGER, name VARCHAR(255));