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:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user