Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for ScanType (0.15 sec)

  1. 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{})
    		}
    	}
    }
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Apr 26 09:53:11 GMT 2024
    - 9.8K bytes
    - Viewed (0)
  2. 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) {
    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)
  3. 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
    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)
Back to top