sqlx

package
v0.0.0-...-6e2457b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNullBool

func NewNullBool(val bool) sql.NullBool

NewNullBool 创建一个新的 sql.NullBool,如果 val 为 true,则 Valid 设置为 true。

func NewNullBytes

func NewNullBytes(val []byte) sql.NullString

NewNullBytes 根据传入的字节切片,创建一个新的 sql.NullString,如果 val 不为空字节切片,则 Valid 设置为 true。

func NewNullFloat64

func NewNullFloat64(val float64) sql.NullFloat64

NewNullFloat64 创建一个新的 sql.NullFloat64,如果 val 不为零值,则 Valid 设置为 true。

func NewNullInt64

func NewNullInt64(val int64) sql.NullInt64

NewNullInt64 创建一个新的 sql.NullInt64,如果 val 不为零值,则 Valid 设置为 true。

func NewNullString

func NewNullString(val string) sql.NullString

NewNullString 创建一个新的 sql.NullString,如果 val 不为空字符串,则 Valid 设置为 true。

func NewNullTime

func NewNullTime(val time.Time) sql.NullTime

NewNullTime 创建一个新的 sql.NullTime,如果 val 不是零时间,则 Valid 设置为 true。

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL