mirror of
https://github.com/vlang/v.git
synced 2025-09-15 15:32:27 +03:00
fmt: fix and simplify align of struct fields (#21995)
This commit is contained in:
parent
576a0abcc7
commit
ddb6685d8a
139 changed files with 553 additions and 519 deletions
|
@ -3,18 +3,18 @@ import db.sqlite
|
|||
import time
|
||||
|
||||
struct TestCustomSqlType {
|
||||
id int @[primary; sql: serial]
|
||||
custom string @[sql_type: 'INTEGER']
|
||||
custom1 string @[sql_type: 'TEXT']
|
||||
custom2 string @[sql_type: 'REAL']
|
||||
custom3 string @[sql_type: 'NUMERIC']
|
||||
id int @[primary; sql: serial]
|
||||
custom string @[sql_type: 'INTEGER']
|
||||
custom1 string @[sql_type: 'TEXT']
|
||||
custom2 string @[sql_type: 'REAL']
|
||||
custom3 string @[sql_type: 'NUMERIC']
|
||||
custom4 string
|
||||
custom5 int
|
||||
custom6 time.Time
|
||||
}
|
||||
|
||||
struct TestDefaultAttribute {
|
||||
id string @[primary; sql: serial]
|
||||
id string @[primary; sql: serial]
|
||||
name string
|
||||
created_at ?string @[default: 'CURRENT_TIME']
|
||||
created_at1 ?string @[default: 'CURRENT_DATE']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue