mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
orm: add pg select expr (#9927)
This commit is contained in:
parent
8af6237e28
commit
e9bbb7de3a
2 changed files with 151 additions and 10 deletions
|
@ -107,4 +107,14 @@ fn psql() {
|
|||
sql db {
|
||||
insert mod into Module
|
||||
}
|
||||
|
||||
modul := sql db {
|
||||
select from Module where id == 1
|
||||
}
|
||||
|
||||
sql db {
|
||||
drop table Module
|
||||
}
|
||||
|
||||
eprintln(modul)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue