Documentation
¶
Index ¶
- func GetNullInt32(filters map[string]string, key string) sql.NullInt32
- func GetNullInt64(filters map[string]string, key string) sql.NullInt64
- func GetNullString(filters map[string]string, key string) sql.NullString
- func ToNullInt32(val int32) sql.NullInt32
- func ToNullInt64(val int64) sql.NullInt64
- func ToNullJsonArray(val any) pqtype.NullRawMessage
- func ToNullJsonObject(val any) pqtype.NullRawMessage
- func ToNullString(val string) sql.NullString
- type BatchUpdater
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetNullInt32 ¶ added in v0.0.2
func GetNullInt64 ¶ added in v0.0.2
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 ToNullInt64 ¶ added in v0.0.2
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
Click to show internal directories.
Click to hide internal directories.