Gitly
English
Русский
Español
日本語
中文
Português
Pricing
Log in
Register
vxx2
/
vlib
/
v
/
checker
/
tests
/
orm_unused_var.vv
18
lines
·
14
sloc
·
220 bytes
·
31ce668c7a582009ecb5a57f0d4029fb5b7fefda
Raw
1
import db.sqlite
2
3
struct Test {
4
id int @[primary; serial]
5
}
6
7
fn main() {
8
db := sqlite.connect(':memory:')!
9
10
sql db {
11
create table Test
12
}!
13
14
x := Test{}
15
x_id := sql db {
16
insert x into Test
17
} or { panic(err) }
18
}
19