Minor doc update
This commit is contained in:
parent
3b459ca9c6
commit
91f245376f
@ -46,8 +46,8 @@ fn main() {
|
||||
};
|
||||
conn.update("INSERT INTO person (name, time_created, data)
|
||||
VALUES ($1, $2, $3)",
|
||||
[&me.name as &ToSql, &me.time_created as &ToSql,
|
||||
&me.data as &ToSql]);
|
||||
[&me.name as &ToSql, &me.time_created as &ToSql,
|
||||
&me.data as &ToSql]);
|
||||
|
||||
let stmt = conn.prepare("SELECT id, name, time_created, data FROM person");
|
||||
for row in stmt.query([]) {
|
||||
|
4
lib.rs
4
lib.rs
@ -38,8 +38,8 @@ fn main() {
|
||||
};
|
||||
conn.update("INSERT INTO person (name, time_created, data)
|
||||
VALUES ($1, $2, $3)",
|
||||
[&me.name as &ToSql, &me.time_created as &ToSql,
|
||||
&me.data as &ToSql]);
|
||||
[&me.name as &ToSql, &me.time_created as &ToSql,
|
||||
&me.data as &ToSql]);
|
||||
|
||||
let stmt = conn.prepare("SELECT id, name, time_created, data FROM person");
|
||||
for row in stmt.query([]) {
|
||||
|
Loading…
Reference in New Issue
Block a user