upgtype

package module
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrConvertScanVal = errors.New("convert scan val to str err")
	ErrInvalidScanVal = errors.New("scan val invalid")
	ErrConvertVal     = errors.New("convert err")
)

Functions

This section is empty.

Types

type JSONB

type JSONB struct {
	Val   pgtype.JSONB
	Valid bool
}

func NewJSONB

func NewJSONB(v interface{}) JSONB

func (*JSONB) Bind

func (j *JSONB) Bind(model interface{}) error

func (JSONB) MarshalJSON

func (j JSONB) MarshalJSON() ([]byte, error)

func (*JSONB) Scan

func (j *JSONB) Scan(value interface{}) error

func (*JSONB) Set

func (j *JSONB) Set(value interface{}) error

func (*JSONB) UnmarshalJSON

func (j *JSONB) UnmarshalJSON(b []byte) error

func (JSONB) Value

func (j JSONB) Value() (driver.Value, error)

type NullString

type NullString struct{ sql.NullString }

func NewNullString

func NewNullString(val string) NullString

func (NullString) MarshalJSON

func (ns NullString) MarshalJSON() ([]byte, error)

func (*NullString) UnmarshalJSON

func (ns *NullString) UnmarshalJSON(data []byte) error

type StrSlice

type StrSlice []string

func (*StrSlice) Scan

func (s *StrSlice) Scan(val interface{}) error

func (StrSlice) Value

func (s StrSlice) Value() (driver.Value, error)

type Uint64Slice

type Uint64Slice []uint64

func (*Uint64Slice) Scan

func (u *Uint64Slice) Scan(val interface{}) error

func (Uint64Slice) Value

func (u Uint64Slice) Value() (driver.Value, error)

Jump to

Keyboard shortcuts

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