orm: cleanup test (put structs at top)

pull/5555/head
Delyan Angelov 2020-06-28 22:10:49 +03:00
parent 3f59f23427
commit 8f1e8a9dde
1 changed files with 14 additions and 18 deletions

View File

@ -5,10 +5,20 @@ import sqlite
struct Module { struct Module {
id int id int
user_id int name string
//name string nr_downloads int
//url string }
//nr_downloads int
struct User {
id int
age int
name string
is_customer bool
skipped_string string [skip]
}
struct Foo {
age int
} }
fn test_orm_sqlite() { fn test_orm_sqlite() {
@ -189,20 +199,6 @@ fn test_orm_sqlite() {
assert z[0].id == 3 assert z[0].id == 3
} }
struct User {
id int
age int
name string
is_customer bool
skipped_string string [skip]
}
struct Foo {
age int
}
fn test_orm_pg() { fn test_orm_pg() {
/* /*
dbname := os.getenv('VDB_NAME') dbname := os.getenv('VDB_NAME')