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

orm: struct field support (#8517)

This commit is contained in:
Louis Schmieder
2021-02-04 20:28:33 +01:00
committed by GitHub
parent 856246c858
commit 97c0ef3505
7 changed files with 196 additions and 10 deletions

View File

@@ -1173,8 +1173,9 @@ pub:
updated_columns []string // for `update set x=y`
update_exprs []Expr // for `update`
pub mut:
table_expr Type
fields []table.Field
table_expr Type
fields []table.Field
sub_structs map[int]SqlStmt
}
pub struct SqlExpr {
@@ -1182,7 +1183,6 @@ pub:
typ table.Type
is_count bool
db_expr Expr // `db` in `sql db {`
where_expr Expr
has_where bool
has_offset bool
offset_expr Expr
@@ -1194,8 +1194,10 @@ pub:
has_limit bool
limit_expr Expr
pub mut:
table_expr Type
fields []table.Field
where_expr Expr
table_expr Type
fields []table.Field
sub_structs map[int]SqlExpr
}
[inline]