orm: cleanup test (put structs at top)
							parent
							
								
									3f59f23427
								
							
						
					
					
						commit
						8f1e8a9dde
					
				|  | @ -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') | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue