types

package
v0.0.19 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNullString

func NewNullString(val string) sql.NullString

func NewNullUUID

func NewNullUUID(val uuid.UUID) uuid.NullUUID

Types

type NullTime

type NullTime struct {
	Time  time.Time
	Valid bool
}

func NewNullTime

func NewNullTime(val time.Time) NullTime

func NewNullTimePtr

func NewNullTimePtr(val *time.Time) NullTime

func (*NullTime) Scan

func (val *NullTime) Scan(src any) (err error)

func (NullTime) Value

func (val NullTime) Value() (driver.Value, error)

type NullUUIDs

type NullUUIDs struct {
	UUIDs UUIDs
	Valid bool
}

func NewNullUUIDs

func NewNullUUIDs(val uuid.UUIDs) NullUUIDs

func (*NullUUIDs) Scan

func (val *NullUUIDs) Scan(src any) (err error)

func (NullUUIDs) Value

func (val NullUUIDs) Value() (driver.Value, error)

type Time

type Time struct {
	time.Time
}

func NewTime

func NewTime(val time.Time) Time

func (*Time) Scan

func (val *Time) Scan(src any) (err error)

func (Time) Value

func (val Time) Value() (driver.Value, error)

type UUIDs

type UUIDs []uuid.UUID

func (*UUIDs) Scan

func (val *UUIDs) Scan(src any) (err error)

func (UUIDs) Value

func (val UUIDs) Value() (driver.Value, error)

Jump to

Keyboard shortcuts

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