mirror of
https://github.com/vlang/v.git
synced 2025-09-16 07:52:32 +03:00
sqlite: use in-memory database in examples and tests
This commit is contained in:
parent
32473eeafe
commit
3643dcbf4b
2 changed files with 2 additions and 7 deletions
|
@ -1,8 +1,7 @@
|
|||
import sqlite
|
||||
|
||||
fn main() {
|
||||
/*
|
||||
db := sqlite.connect('users.db')
|
||||
db := sqlite.connect(':memory:')
|
||||
db.exec("create table users (id integer primary key, name text default '');")
|
||||
|
||||
db.exec("insert into users (name) values ('Sam')")
|
||||
|
@ -19,5 +18,4 @@ fn main() {
|
|||
for row in users {
|
||||
println(row.vals)
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue