pqx

package
v0.14.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JsonbScan

func JsonbScan(src interface{}, v interface{}) error

JsonbScan helps models to implement sql.Scanner

func JsonbValue

func JsonbValue(v interface{}) (driver.Value, error)

JsonbValue helps models to implement driver.Valuer

Types

type Duration

type Duration utils.Duration

Duration is also an alias of time.Duration

func (Duration) MarshalText

func (d Duration) MarshalText() (text []byte, err error)

MarshalText implements encoding.TextMarshaler

func (*Duration) Scan

func (d *Duration) Scan(src interface{}) error

Scan implements sql.Scanner

func (*Duration) UnmarshalText

func (d *Duration) UnmarshalText(text []byte) error

UnmarshalText implements encoding.TextUnmarshaler

func (Duration) Value

func (d Duration) Value() (driver.Value, error)

Value implements driver.Valuer

type JsonbMap

type JsonbMap map[string]interface{}

func (*JsonbMap) Scan

func (m *JsonbMap) Scan(src interface{}) error

func (JsonbMap) Value

func (m JsonbMap) Value() (driver.Value, error)

type JsonbStringMap

type JsonbStringMap map[string]string

func (*JsonbStringMap) Scan

func (m *JsonbStringMap) Scan(src interface{}) error

func (JsonbStringMap) Value

func (m JsonbStringMap) Value() (driver.Value, error)

type TimeArray

type TimeArray []time.Time

TimeArray register driver.Valuer & sql.Scanner

func (*TimeArray) Scan

func (a *TimeArray) Scan(src interface{}) error

Scan implements sql.Scanner

func (TimeArray) Value

func (a TimeArray) Value() (driver.Value, error)

Value implements driver.Valuer

type UUIDArray

type UUIDArray []uuid.UUID

func (*UUIDArray) Scan

func (a *UUIDArray) Scan(src interface{}) error

Scan implements sql.Scanner

func (UUIDArray) Strings

func (a UUIDArray) Strings() []string

func (UUIDArray) Value

func (a UUIDArray) Value() (driver.Value, error)

Value implements driver.Valuer

Jump to

Keyboard shortcuts

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