mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
fix pg orm example
This commit is contained in:
parent
51051cdf92
commit
cd54b2878e
@ -25,8 +25,8 @@ fn main() {
|
||||
|
||||
// V syntax can be used to build queries
|
||||
println('----------------------------------------------------------------')
|
||||
country := 'Bulgaria'
|
||||
bg_customers := db.select from Customer where country == country && id != 2
|
||||
bg_country := 'Bulgaria'
|
||||
bg_customers := db.select from Customer where country == bg_country && id != 2
|
||||
for customer in bg_customers {
|
||||
println('$customer.country | $customer.id - $customer.name')
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user