Skip to content

Commit

Permalink
orm: fix list generation and escape loose backtick (vlang#23039)
Browse files Browse the repository at this point in the history
  • Loading branch information
Elsie19 authored Dec 1, 2024
1 parent 37e2fdb commit f3d0c53
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vlib/orm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ struct Foo {
- `[sql_type: 'SQL TYPE']` explicitly sets the type in SQL
- `[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,
surround `raw_sql` with backticks (`).
surround `raw_sql` with backticks (\`).

- `[fkey: 'parent_id']` sets foreign key for an field which holds an array

## Usage
Expand Down

0 comments on commit f3d0c53

Please sign in to comment.