mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
orm: fix list generation and escape loose backtick (#23039)
This commit is contained in:
parent
37e2fdbafb
commit
f3d0c53671
1 changed files with 2 additions and 1 deletions
|
@ -33,7 +33,8 @@ struct Foo {
|
||||||
- `[sql_type: 'SQL TYPE']` explicitly sets the type in SQL
|
- `[sql_type: 'SQL TYPE']` explicitly sets the type in SQL
|
||||||
- `[default: 'raw_sql']` inserts `raw_sql` verbatim in a "DEFAULT" clause when
|
- `[default: 'raw_sql']` inserts `raw_sql` verbatim in a "DEFAULT" clause when
|
||||||
creating a new table, allowing for SQL functions like `CURRENT_TIME`. For raw strings,
|
creating a new table, allowing for SQL functions like `CURRENT_TIME`. For raw strings,
|
||||||
surround `raw_sql` with backticks (`).
|
surround `raw_sql` with backticks (\`).
|
||||||
|
|
||||||
- `[fkey: 'parent_id']` sets foreign key for an field which holds an array
|
- `[fkey: 'parent_id']` sets foreign key for an field which holds an array
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue