Help us shape the future of Go! Take the 2026 Go Developer Survey

sql

package module
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2026 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNullBool added in v0.0.6

func GetNullBool(filters map[string]string, key string) sql.NullBool

func GetNullByte added in v0.0.6

func GetNullByte(filters map[string]string, key string) sql.NullByte

func GetNullFloat64 added in v0.0.6

func GetNullFloat64(filters map[string]string, key string) sql.NullFloat64

func GetNullInt16 added in v0.0.6

func GetNullInt16(filters map[string]string, key string) sql.NullInt16

func GetNullInt32 added in v0.0.2

func GetNullInt32(filters map[string]string, key string) sql.NullInt32

func GetNullInt64 added in v0.0.2

func GetNullInt64(filters map[string]string, key string) sql.NullInt64

func GetNullString added in v0.0.2

func GetNullString(filters map[string]string, key string) sql.NullString

func GetNullTime added in v0.0.4

func GetNullTime(filters map[string]string, key string) sql.NullTime

func ToNullBool added in v0.0.7

func ToNullBool(val *bool) sql.NullBool

func ToNullInt32 added in v0.0.2

func ToNullInt32[T Number](val *T) sql.NullInt32

func ToNullInt64 added in v0.0.2

func ToNullInt64[T Number](val *T) sql.NullInt64

func ToNullJsonArray added in v0.0.2

func ToNullJsonArray(val any) pqtype.NullRawMessage

func ToNullJsonObject added in v0.0.2

func ToNullJsonObject(val any) pqtype.NullRawMessage

func ToNullString added in v0.0.2

func ToNullString(val *string) sql.NullString

func ToNullTime added in v0.0.4

func ToNullTime[T *int64 | *string | *time.Time](val T) sql.NullTime

Types

type BatchUpdater

type BatchUpdater interface {
	Set(setColumn string, value any) BatchUpdater
	Case(caseSetColumn, caseWhenColumn string) BatchUpdater
	When(whenValue, thenValue any) BatchUpdater
	Generate() (string, error)
}

func NewMysqlBatchUpdater

func NewMysqlBatchUpdater(table string) BatchUpdater

type Number added in v0.0.5

type Number interface {
	~int | ~int8 | ~int16 | ~int32 | ~int64 | ~uint | ~uint8 | ~uint16 | ~uint32 | ~uint64
}

Jump to

Keyboard shortcuts

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