sql

package module
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2026 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 ToNullInt32 added in v0.0.2

func ToNullInt32(val int32) sql.NullInt32

func ToNullInt64 added in v0.0.2

func ToNullInt64(val int64) 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

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

Jump to

Keyboard shortcuts

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