mirror of
https://github.com/isar/rusqlite.git
synced 2025-01-20 07:10:51 +08:00
Merge pull request #27 from gentoo90/readme-fix
Fix example in README.md
This commit is contained in:
commit
6cc02d1502
@ -22,7 +22,7 @@ struct Person {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let conn = SqliteConnection::open(":memory:").unwrap();
|
let conn = SqliteConnection::open_in_memory().unwrap();
|
||||||
|
|
||||||
conn.execute("CREATE TABLE person (
|
conn.execute("CREATE TABLE person (
|
||||||
id INTEGER PRIMARY KEY,
|
id INTEGER PRIMARY KEY,
|
||||||
@ -48,7 +48,7 @@ fn main() {
|
|||||||
time_created: row.get(2),
|
time_created: row.get(2),
|
||||||
data: row.get(3)
|
data: row.get(3)
|
||||||
};
|
};
|
||||||
println!("Found person {}", person);
|
println!("Found person {:?}", person);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user