Gitly
English
Русский
Español
日本語
中文
Português
Pricing
Log in
Register
vxx2
/
vlib
/
v
/
checker
/
tests
/
orm_multidim_array.vv
20
lines
·
17
sloc
·
278 bytes
·
757929392e0e7a75fc1272116460981e589737d5
Raw
1
import db.sqlite
2
3
@[table: users]
4
struct User {
5
id int @[pimary]
6
}
7
8
@[table: foos]
9
struct Foo {
10
id int @[primary; sql: serial]
11
users []User @[fkey: id]
12
bad [][]User @[fkey: id]
13
}
14
15
fn main() {
16
db := sqlite.connect(':memory:')!
17
sql db {
18
create table Foo
19
}!
20
}
21