1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

sqlite: modify exec functions + other fixes

This commit is contained in:
toman222
2020-02-02 02:56:09 +01:00
committed by GitHub
parent 0ef1ba9ad2
commit 932392a7fd
3 changed files with 61 additions and 37 deletions

View File

@@ -14,7 +14,8 @@ fn main() {
name := db.q_string('select name from users where id = 1')
assert name == 'Sam'
users := db.exec('select * from users')
users, code := db.exec('select * from users')
println("SQL Result code: $code")
for row in users {
println(row.vals)
}