orm: add pg select expr (#9927)

This commit is contained in:
Louis Schmieder 2021-04-29 12:38:36 +02:00 committed by GitHub
parent 8af6237e28
commit e9bbb7de3a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 151 additions and 10 deletions

View file

@ -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)
}