mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
16 lines
227 B
V
16 lines
227 B
V
module main
|
|
|
|
struct User {
|
|
mut:
|
|
id int [primary]
|
|
username string
|
|
age string
|
|
city string
|
|
}
|
|
|
|
fn main() {
|
|
_ := sql _ {
|
|
select from User where (age > 18) && (city == 'London' || username == username)
|
|
}!
|
|
}
|