mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-23 09:09:19 +08:00
commit
d1ad61dc41
@ -38,7 +38,7 @@ fn main() {
|
|||||||
data: None
|
data: None
|
||||||
};
|
};
|
||||||
conn.execute("INSERT INTO person (name, time_created, data)
|
conn.execute("INSERT INTO person (name, time_created, data)
|
||||||
VALUES ($1, $2, $3)",
|
VALUES (?1, ?2, ?3)",
|
||||||
&[&me.name, &me.time_created, &me.data]).unwrap();
|
&[&me.name, &me.time_created, &me.data]).unwrap();
|
||||||
|
|
||||||
let mut stmt = conn.prepare("SELECT id, name, time_created, data FROM person").unwrap();
|
let mut stmt = conn.prepare("SELECT id, name, time_created, data FROM person").unwrap();
|
||||||
|
@ -32,7 +32,7 @@
|
|||||||
//! data: None
|
//! data: None
|
||||||
//! };
|
//! };
|
||||||
//! conn.execute("INSERT INTO person (name, time_created, data)
|
//! conn.execute("INSERT INTO person (name, time_created, data)
|
||||||
//! VALUES ($1, $2, $3)",
|
//! VALUES (?1, ?2, ?3)",
|
||||||
//! &[&me.name, &me.time_created, &me.data]).unwrap();
|
//! &[&me.name, &me.time_created, &me.data]).unwrap();
|
||||||
//!
|
//!
|
||||||
//! let mut stmt = conn.prepare("SELECT id, name, time_created, data FROM person").unwrap();
|
//! let mut stmt = conn.prepare("SELECT id, name, time_created, data FROM person").unwrap();
|
||||||
|
Loading…
Reference in New Issue
Block a user