1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

orm: cleanup test (put structs at top)

This commit is contained in:
Delyan Angelov 2020-06-28 22:10:49 +03:00
parent 3f59f23427
commit 8f1e8a9dde

View File

@ -5,10 +5,20 @@ import sqlite
struct Module {
id int
user_id int
//name string
//url string
//nr_downloads int
name 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() {
@ -189,20 +199,6 @@ fn test_orm_sqlite() {
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() {
/*
dbname := os.getenv('VDB_NAME')