sqlex

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FMTime

type FMTime time.Time

FMTime 主要是定制了json.MarshalJSON接口

func (FMTime) Format

func (ft FMTime) Format(fmt string) string

func (FMTime) IsZero

func (ft FMTime) IsZero() bool

func (FMTime) MarshalJSON

func (ft FMTime) MarshalJSON() ([]byte, error)

MarshalJSON 实现json.MarshalJSON

func (*FMTime) Scan

func (ft *FMTime) Scan(value interface{}) error

Scan 实现 driver.Scaner

func (FMTime) Value

func (ft FMTime) Value() (driver.Value, error)

Value 实现 driver.Valuer

type Map

type Map map[string]interface{}

Map 是map

func (*Map) Scan

func (m *Map) Scan(value interface{}) error

Scan 实现 driver.Scaner

func (*Map) UnmarshalJSON

func (m *Map) UnmarshalJSON(b []byte) error

func (Map) Value

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

Value 实现 driver.Valuer

type StringList

type StringList []string

StringList 是string数组

func (*StringList) Scan

func (il *StringList) Scan(value interface{}) error

Scan 实现 driver.Scaner

func (*StringList) UnmarshalJSON

func (il *StringList) UnmarshalJSON(b []byte) (err error)

func (StringList) Value

func (il StringList) Value() (driver.Value, error)

Value 实现 driver.Valuer

type UintList

type UintList []uint

UintList 是uint数组

func (*UintList) Scan

func (il *UintList) Scan(value interface{}) error

Scan 实现 driver.Scaner

func (*UintList) UnmarshalJSON

func (il *UintList) UnmarshalJSON(b []byte) (err error)

func (UintList) Value

func (il UintList) Value() (driver.Value, error)

Value 实现 driver.Valuer

Jump to

Keyboard shortcuts

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