mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-25 19:01:38 +08:00
Actually test DELETE, INSERT, UPDATE on vtablog
This commit is contained in:
parent
aa511ea337
commit
106e46c424
@ -286,6 +286,12 @@ mod test {
|
|||||||
let mut stmt = db.prepare("SELECT * FROM log;")?;
|
let mut stmt = db.prepare("SELECT * FROM log;")?;
|
||||||
let mut rows = stmt.query([])?;
|
let mut rows = stmt.query([])?;
|
||||||
while rows.next()?.is_some() {}
|
while rows.next()?.is_some() {}
|
||||||
|
db.execute("DELETE FROM log WHERE a = ?", ["a1"])?;
|
||||||
|
db.execute(
|
||||||
|
"INSERT INTO log (a, b, c) VALUES (?, ?, ?)",
|
||||||
|
["a", "b", "c"],
|
||||||
|
)?;
|
||||||
|
db.execute("UPDATE log SET b = ?, c = ? WHERE a = ?", ["bn", "cn", "a1"])?;
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user