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

orm: bool support; vweb fixes

This commit is contained in:
Alexander Medvednikov
2019-12-09 17:10:44 +03:00
parent 32b0225079
commit 6f49d4c1d2
6 changed files with 36 additions and 15 deletions

View File

@ -25,7 +25,8 @@ fn main() {
// V syntax can be used to build queries
println('----------------------------------------------------------------')
bg_customers := db.select from Customer where country == 'Bulgaria' && id != 2
country := 'Bulgaria'
bg_customers := db.select from Customer where country == country && id != 2
for customer in bg_customers {
println('$customer.country | $customer.id - $customer.name')
}