orm: fix list generation and escape loose backtick (#23039)

This commit is contained in:
Elsie 2024-12-01 17:26:16 -05:00 committed by GitHub
parent 37e2fdbafb
commit f3d0c53671
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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