mirror of
https://github.com/isar/rusqlite.git
synced 2025-09-16 12:42:18 +08:00
Remove some usages of params! / NO_PARAMS
This commit is contained in:
@@ -31,7 +31,7 @@ fn main() -> Result<()> {
|
||||
name TEXT NOT NULL,
|
||||
data BLOB
|
||||
)",
|
||||
params![],
|
||||
[],
|
||||
)?;
|
||||
let me = Person {
|
||||
id: 0,
|
||||
@@ -44,7 +44,7 @@ fn main() -> Result<()> {
|
||||
)?;
|
||||
|
||||
let mut stmt = conn.prepare("SELECT id, name, data FROM person")?;
|
||||
let person_iter = stmt.query_map(params![], |row| {
|
||||
let person_iter = stmt.query_map([], |row| {
|
||||
Ok(Person {
|
||||
id: row.get(0)?,
|
||||
name: row.get(1)?,
|
||||
|
Reference in New Issue
Block a user