bind/rust: Implement pragma_query

This commit is contained in:
Diego Reis 2025-05-19 14:04:59 -03:00
parent 72a1cd5e3c
commit ed0e3b1ba2
3 changed files with 26 additions and 6 deletions

View file

@ -12,8 +12,8 @@ async fn main() {
.await
.unwrap();
conn.pragma_query("journal_mode", |&mut row| {
println!("{:?}", row);
conn.pragma_query("journal_mode", |row| {
println!("{}", row.get_value(0));
Ok(())
})
.unwrap();