examples: run vfmt over psql/customer.v
parent
01a8d3f8a1
commit
ac0b638b6a
|
@ -5,14 +5,15 @@ import pg
|
||||||
const dash = '----------------------------------------------------------------'
|
const dash = '----------------------------------------------------------------'
|
||||||
|
|
||||||
struct Customer {
|
struct Customer {
|
||||||
id int
|
id int
|
||||||
name string
|
name string
|
||||||
nr_orders int
|
nr_orders int
|
||||||
country string
|
country string
|
||||||
}
|
}
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
/*db := pg.connect(pg.Config{
|
/*
|
||||||
|
db := pg.connect(pg.Config{
|
||||||
host: 'localhost' //'127.0.0.1'
|
host: 'localhost' //'127.0.0.1'
|
||||||
user: 'postgres'
|
user: 'postgres'
|
||||||
dbname: 'customerdb'
|
dbname: 'customerdb'
|
||||||
|
@ -60,5 +61,3 @@ fn main() {
|
||||||
}
|
}
|
||||||
db.insert(nc)*/
|
db.insert(nc)*/
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue