Documentation ¶
Index ¶
- func Arr2Pg(arr []bool) pgtype.BoolArray
- func Arr2Pg16(arr []int16) pgtype.Int2Array
- func Arr2Pg32(arr []int32) pgtype.Int4Array
- func Arr2Pg64(arr []int64) pgtype.Int8Array
- func NewBool(b bool) *bool
- func NewInt(i int) *int
- func NewInt16(i int16) *int16
- func NewInt32(i int32) *int32
- func NewInt64(i int64) *int64
- func NewInt8(i int8) *int8
- func NewString(i string) *string
- func Pg2Arr(v pgtype.BoolArray) []bool
- func Pg2Arr16(v pgtype.Int2Array) []int16
- func Pg2Arr32(v pgtype.Int4Array) []int32
- func Pg2Arr64(v pgtype.Int8Array) []int64
- type Array
- type AutoDateTime
- type Date
- type DateList
- type DateTime
- type DateTimeList
- type DecimalList
- type Fields
- type IntList
- type NullEr
- type StringList
- type Time
- type TimeList
- type UUID
- type UUIDList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AutoDateTime ¶
datetime
func (AutoDateTime) MarshalJSON ¶
func (t AutoDateTime) MarshalJSON() ([]byte, error)
func (*AutoDateTime) Scan ¶
func (t *AutoDateTime) Scan(v interface{}) error
Scan valueof jstime.Time
func (*AutoDateTime) UnmarshalJSON ¶
func (t *AutoDateTime) UnmarshalJSON(data []byte) error
type DateTime ¶
datetime
func NowDateTime ¶
func NowDateTime() DateTime
func NowDateTimeP ¶ added in v0.1.4
func NowDateTimeP() *DateTime
func (DateTime) MarshalJSON ¶
func (*DateTime) UnmarshalJSON ¶
type DateTimeList ¶
type DateTimeList []DateTime
type DecimalList ¶
type StringList ¶
type StringList []string
func (StringList) IsNull ¶
func (p StringList) IsNull() bool
func (StringList) Len ¶
func (p StringList) Len() int
type UUID ¶
func Str2UUIDMust ¶
func Str2UUIDMustP ¶ added in v0.1.4
func (UUID) MarshalJSON ¶
func (*UUID) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.