mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
orm: skip fields
This commit is contained in:
parent
797d4364e7
commit
88cde6e4e6
@ -64,6 +64,9 @@ fn (p mut Parser) select_query(fn_ph int) string {
|
|||||||
println('orm: skipping $field.name')
|
println('orm: skipping $field.name')
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
if field.attr.contains('skip') {
|
||||||
|
continue
|
||||||
|
}
|
||||||
fields << field
|
fields << field
|
||||||
}
|
}
|
||||||
if fields.len == 0 {
|
if fields.len == 0 {
|
||||||
@ -88,6 +91,7 @@ fn (p mut Parser) select_query(fn_ph int) string {
|
|||||||
println('orm: skipping $field.name')
|
println('orm: skipping $field.name')
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
p.register_var({ field | is_mut: true, is_used:true, is_changed:true })
|
p.register_var({ field | is_mut: true, is_used:true, is_changed:true })
|
||||||
}
|
}
|
||||||
q += table_name + 's'
|
q += table_name + 's'
|
||||||
|
Loading…
Reference in New Issue
Block a user