Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for nullint16 (0.63 sec)

  1. api/go1.17.txt

    pkg database/sql, method (*NullInt16) Scan(interface{}) error
    pkg database/sql, method (NullByte) Value() (driver.Value, error)
    pkg database/sql, method (NullInt16) Value() (driver.Value, error)
    pkg database/sql, type NullByte struct
    pkg database/sql, type NullByte struct, Byte uint8
    pkg database/sql, type NullByte struct, Valid bool
    pkg database/sql, type NullInt16 struct
    pkg database/sql, type NullInt16 struct, Int16 int16
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 20:31:46 UTC 2023
    - 18K bytes
    - Viewed (0)
  2. src/database/sql/sql_test.go

    	spec := nullTestSpec{"nullint16", "int16", [6]nullTestRow{
    		{NullInt16{31, true}, 1, NullInt16{31, true}},
    		{NullInt16{-22, false}, 1, NullInt16{0, false}},
    		{22, 1, NullInt16{22, true}},
    		{NullInt16{33, true}, 1, NullInt16{33, true}},
    		{NullInt16{222, false}, 1, NullInt16{0, false}},
    		{0, NullInt16{31, false}, nil},
    	}}
    	nullTestRun(t, spec)
    }
    
    func TestNullByteParam(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 111.6K bytes
    - Viewed (0)
  3. src/database/sql/fakedb_test.go

    	case "nullbool":
    		return reflect.TypeFor[NullBool]()
    	case "int16":
    		return reflect.TypeFor[int16]()
    	case "nullint16":
    		return reflect.TypeFor[NullInt16]()
    	case "int32":
    		return reflect.TypeFor[int32]()
    	case "nullint32":
    		return reflect.TypeFor[NullInt32]()
    	case "string":
    		return reflect.TypeFor[string]()
    	case "nullstring":
    		return reflect.TypeFor[NullString]()
    	case "int64":
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 01 12:38:07 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  4. src/database/sql/sql.go

    	}
    	return ns.String, nil
    }
    
    // NullInt64 represents an int64 that may be null.
    // NullInt64 implements the [Scanner] interface so
    // it can be used as a scan destination, similar to [NullString].
    type NullInt64 struct {
    	Int64 int64
    	Valid bool // Valid is true if Int64 is not NULL
    }
    
    // Scan implements the [Scanner] interface.
    func (n *NullInt64) Scan(value any) error {
    	if value == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:53 UTC 2024
    - 103.6K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"NullFloat64.Float64", Field, 0},
    		{"NullFloat64.Valid", Field, 0},
    		{"NullInt16", Type, 17},
    		{"NullInt16.Int16", Field, 17},
    		{"NullInt16.Valid", Field, 17},
    		{"NullInt32", Type, 13},
    		{"NullInt32.Int32", Field, 13},
    		{"NullInt32.Valid", Field, 13},
    		{"NullInt64", Type, 0},
    		{"NullInt64.Int64", Field, 0},
    		{"NullInt64.Valid", Field, 0},
    		{"NullString", Type, 0},
    		{"NullString.String", Field, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
  6. scan.go

    			*dest = append(*dest, mapValue)
    		}
    	case *int, *int8, *int16, *int32, *int64,
    		*uint, *uint8, *uint16, *uint32, *uint64, *uintptr,
    		*float32, *float64,
    		*bool, *string, *time.Time,
    		*sql.NullInt32, *sql.NullInt64, *sql.NullFloat64,
    		*sql.NullBool, *sql.NullString, *sql.NullTime:
    		for initialized || rows.Next() {
    			initialized = false
    			db.RowsAffected++
    			db.AddError(rows.Scan(dest))
    		}
    	default:
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 10:57:36 UTC 2024
    - 10K bytes
    - Viewed (0)
  7. migrator/column_type.go

    	ColumnTypeValue    sql.NullString
    	PrimaryKeyValue    sql.NullBool
    	UniqueValue        sql.NullBool
    	AutoIncrementValue sql.NullBool
    	LengthValue        sql.NullInt64
    	DecimalSizeValue   sql.NullInt64
    	ScaleValue         sql.NullInt64
    	NullableValue      sql.NullBool
    	ScanTypeValue      reflect.Type
    	CommentValue       sql.NullString
    	DefaultValueValue  sql.NullString
    }
    
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Thu Mar 24 01:31:58 UTC 2022
    - 3.3K bytes
    - Viewed (0)
  8. tests/scanner_valuer_test.go

    	Age              sql.NullInt64
    	Male             sql.NullBool
    	Height           sql.NullFloat64
    	Birthday         sql.NullTime
    	Allergen         NullString
    	Password         EncryptedData
    	Bytes            []byte
    	Num              Num
    	Strings          StringsSlice
    	Structs          StructsSlice
    	Role             Role
    	UserID           *sql.NullInt64
    	User             User
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 07 07:02:07 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  9. tests/preload_suits_test.go

    type LevelA2 struct {
    	ID       uint
    	Value    string
    	LevelA3s []*LevelA3 `json:",omitempty"`
    }
    
    type LevelA3 struct {
    	ID        uint
    	Value     string
    	LevelA1ID sql.NullInt64
    	LevelA1   *LevelA1
    	LevelA2ID sql.NullInt64
    	LevelA2   *LevelA2
    }
    
    func TestNestedPreload10(t *testing.T) {
    	DB.Migrator().DropTable(&LevelA3{}, &LevelA2{}, &LevelA1{})
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Fri Mar 18 05:38:46 UTC 2022
    - 30.3K bytes
    - Viewed (0)
  10. schema/field_test.go

    	// test valuer and other type
    	age := myint(10)
    	var nilTime *time.Time
    	newValues2 := map[string]interface{}{
    		"name":       sql.NullString{String: "valuer_and_setter_3", Valid: true},
    		"id":         &sql.NullInt64{Int64: 3, Valid: true},
    		"created_at": tests.Now(),
    		"updated_at": nilTime,
    		"deleted_at": time.Now(),
    		"age":        &age,
    		"birthday":   mytime(time.Now()),
    		"active":     mybool(true),
    	}
    
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Sat Feb 19 09:02:53 UTC 2022
    - 12.7K bytes
    - Viewed (0)
Back to top