- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for Callable (2.33 sec)
-
migrator/migrator.go
alterColumn = true } } } // check nullable if nullable, ok := columnType.Nullable(); ok && nullable == field.NotNull { // not primary key & database is nullable if !field.PrimaryKey && nullable { alterColumn = true } } // check default value if !field.PrimaryKey {
Go - Registered: Sun May 05 09:35:13 GMT 2024 - Last Modified: Fri Apr 26 07:15:49 GMT 2024 - 29K bytes - Viewed (0) -
migrator/column_type.go
return ct.DecimalSizeValue.Int64, ct.ScaleValue.Int64, true } return ct.SQLColumnType.DecimalSize() } // Nullable reports whether the column may be null. func (ct ColumnType) Nullable() (nullable bool, ok bool) { if ct.NullableValue.Valid { return ct.NullableValue.Bool, true } return ct.SQLColumnType.Nullable() } // Unique reports whether the column may be unique. func (ct ColumnType) Unique() (unique bool, ok bool) {
Go - Registered: Sun May 05 09:35:13 GMT 2024 - Last Modified: Thu Mar 24 01:31:58 GMT 2022 - 3.3K bytes - Viewed (0) -
migrator.go
PrimaryKey() (isPrimaryKey bool, ok bool) AutoIncrement() (isAutoIncrement bool, ok bool) Length() (length int64, ok bool) DecimalSize() (precision int64, scale int64, ok bool) Nullable() (nullable bool, ok bool) Unique() (unique bool, ok bool) ScanType() reflect.Type Comment() (value string, ok bool) DefaultValue() (value string, ok bool) } type Index interface { Table() string
Go - Registered: Sun May 05 09:35:13 GMT 2024 - Last Modified: Mon Oct 30 09:15:49 GMT 2023 - 3.1K bytes - Viewed (0)