1
0
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:
Alexander Medvednikov
2020-06-25 12:05:24 +02:00
parent a1bad50b2f
commit 786be1d1c3
5 changed files with 53 additions and 52 deletions

View File

@@ -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() {
/*