- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for ScanType (0.11 sec)
-
migrator/column_type.go
func (ct ColumnType) Unique() (unique bool, ok bool) { return ct.UniqueValue.Bool, ct.UniqueValue.Valid } // ScanType returns a Go type suitable for scanning into using Rows.Scan. func (ct ColumnType) ScanType() reflect.Type { if ct.ScanTypeValue != nil { return ct.ScanTypeValue } return ct.SQLColumnType.ScanType() } // Comment returns the comment of current column. func (ct ColumnType) Comment() (value string, ok bool) {
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Thu Mar 24 01:31:58 UTC 2022 - 3.3K bytes - Viewed (0) -
scan.go
continue } values[idx] = new(interface{}) } } else if len(columnTypes) > 0 { for idx, columnType := range columnTypes { if columnType.ScanType() != nil { values[idx] = reflect.New(reflect.PtrTo(columnType.ScanType())).Interface() } else { values[idx] = new(interface{}) } } } else { for idx := range columns { values[idx] = new(interface{}) } } }
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Mon Jun 24 09:42:59 UTC 2024 - 10.1K bytes - Viewed (0) -
migrator.go
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 Name() string Columns() []string
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Mon Oct 30 09:15:49 UTC 2023 - 3.1K bytes - Viewed (0) -
api/go1.8.txt
pkg database/sql, method (*ColumnType) Length() (int64, bool) pkg database/sql, method (*ColumnType) Name() string pkg database/sql, method (*ColumnType) Nullable() (bool, bool) pkg database/sql, method (*ColumnType) ScanType() reflect.Type pkg database/sql, method (*DB) BeginTx(context.Context, *TxOptions) (*Tx, error) pkg database/sql, method (*DB) ExecContext(context.Context, string, ...interface{}) (Result, error)
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Wed Dec 21 05:25:57 UTC 2016 - 16.3K bytes - Viewed (0)