mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-23 00:39:20 +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,
|
//! name TEXT NOT NULL,
|
||||||
//! data BLOB
|
//! data BLOB
|
||||||
//! )",
|
//! )",
|
||||||
//! [],
|
//! (), // empty list of parameters.
|
||||||
//! )?;
|
//! )?;
|
||||||
//! let me = Person {
|
//! let me = Person {
|
||||||
//! id: 0,
|
//! id: 0,
|
||||||
@ -29,7 +29,7 @@
|
|||||||
//! };
|
//! };
|
||||||
//! conn.execute(
|
//! conn.execute(
|
||||||
//! "INSERT INTO person (name, data) VALUES (?1, ?2)",
|
//! "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")?;
|
//! let mut stmt = conn.prepare("SELECT id, name, data FROM person")?;
|
||||||
|
Loading…
Reference in New Issue
Block a user