mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-22 15:39:28 +08:00
Make the example code in the crate docs be the same as the README
This commit is contained in:
parent
5923d0c8bd
commit
74e4fa008e
@ -20,7 +20,7 @@
|
||||
//! name TEXT NOT NULL,
|
||||
//! data BLOB
|
||||
//! )",
|
||||
//! [],
|
||||
//! (), // empty list of parameters.
|
||||
//! )?;
|
||||
//! let me = Person {
|
||||
//! id: 0,
|
||||
@ -29,7 +29,7 @@
|
||||
//! };
|
||||
//! conn.execute(
|
||||
//! "INSERT INTO person (name, data) VALUES (?1, ?2)",
|
||||
//! (me.name, me.data),
|
||||
//! (&me.name, &me.data),
|
||||
//! )?;
|
||||
//!
|
||||
//! let mut stmt = conn.prepare("SELECT id, name, data FROM person")?;
|
||||
|
Loading…
Reference in New Issue
Block a user