mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
orm: sql type in struct by attribute (#14919)
This commit is contained in:
committed by
GitHub
parent
4238e5f6b9
commit
3f3742122f
@@ -14,6 +14,7 @@
|
||||
- `[skip]` field will be skipped
|
||||
- `[sql: type]` where `type` is a V type such as `int` or `f64`, or special type `serial`
|
||||
- `[sql: 'name']` sets a custom column name for the field
|
||||
- `[sql_type: 'SQL TYPE']` sets the sql type which is used in sql
|
||||
|
||||
## Usage
|
||||
|
||||
|
||||
Reference in New Issue
Block a user