mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
orm: move type logic to checker, so that sql queries can be used before type def
This commit is contained in:
@@ -11,14 +11,6 @@ struct Module {
|
||||
//nr_downloads int
|
||||
}
|
||||
|
||||
struct User {
|
||||
id int
|
||||
age int
|
||||
name string
|
||||
is_customer bool
|
||||
skipped_string string [skip]
|
||||
}
|
||||
|
||||
fn test_orm_sqlite() {
|
||||
db := sqlite.connect(':memory:') or { panic(err) }
|
||||
db.exec("drop table if exists User")
|
||||
@@ -131,6 +123,15 @@ fn test_orm_sqlite() {
|
||||
*/
|
||||
}
|
||||
|
||||
struct User {
|
||||
id int
|
||||
age int
|
||||
name string
|
||||
is_customer bool
|
||||
skipped_string string [skip]
|
||||
}
|
||||
|
||||
|
||||
|
||||
fn test_orm_pg() {
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user