Documentation
¶
Overview ¶
Copyright (c) 2018-present Anbillon Team (anbillonteam@gmail.com). This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree.
Package typex implements the Scanner interface and the driver Valuer interface so we can use them in database operation.
Copyright (c) 2018-present Anbillon Team (anbillonteam@gmail.com). This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree.
Package typex implements the Scanner interface and the driver Valuer interface so we can use them in database operation.
Copyright (c) 2018-present Anbillon Team (anbillonteam@gmail.com). This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree.
Package typex implements the Scanner interface and the driver Valuer interface so we can use them in database operation.
Copyright (c) 2018-present Anbillon Team (anbillonteam@gmail.com). This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree.
Package typex implements the Scanner interface and the driver Valuer interface so we can use them in database operation.
Copyright (c) 2018-present Anbillon Team (anbillonteam@gmail.com). This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree.
Package typex implements the Scanner interface and the driver Valuer interface so we can use them in database operation.
Copyright (c) 2018-present Anbillon Team (anbillonteam@gmail.com). This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree.
Package typex implements the Scanner interface and the driver Valuer interface so we can use them in database operation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NullBytes ¶
NullTime represents a []byte that may be null. NullBytes implements the sql.Scanner interface so it can be used as a scan destination, similar to sql.NullString.
func NewNullBytes ¶
NewNullBytes create a new NullBytes. It will check if the given bytes is valid.
type NullFloat ¶
type NullFloat struct {
sql.NullFloat64
}
NullFloat wraps sql.NullFloat64.
func NewNullFloat ¶
NewNullFloat will create a new NullFloat.
type NullString ¶
type NullString struct {
sql.NullString
}
NullString wraps sql.NullString.
func NewNullString ¶
func NewNullString(s string) NullString
NewNullString will create a new NullString.
type NullTime ¶
NullTime represents a time.Time that may be null. NullTime implements the sql.Scanner interface so it can be used as a scan destination, similar to sql.NullString.
func NewNullTime ¶
NewNullTime create a new NullTime. It will check if the given time is valid.