types

package
v0.0.0-...-3467a1f Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2022 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Int64Array

type Int64Array pq.Int64Array

Int64Array ...

func (Int64Array) Int64Slice

func (ia Int64Array) Int64Slice() []int64

Int64Slice

func (*Int64Array) Scan

func (ia *Int64Array) Scan(v interface{}) error

Scan

func (Int64Array) Value

func (ia Int64Array) Value() (driver.Value, error)

Value

type JSONB

type JSONB struct {
	json.RawMessage
}

JSONB ...

func JSONBFrom

func JSONBFrom(src interface{}) (JSONB, error)

JSONBFrom returns a new JSONB instance from src which implements MarshalJSON

func JSONBOf

func JSONBOf(jt string) JSONB

JSONBOf returns a new instance of JSONB

func (*JSONB) Scan

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

Scan ...

func (*JSONB) UnmarshalParam

func (j *JSONB) UnmarshalParam(src string) error

UnmarshalParam deserializes NullJSONText from form,query for echo.Context.Bind

func (JSONB) Value

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

Value ...

type NullBool

type NullBool struct {
	sql.NullBool
}

NullBool is a wrapper of sql.NullBool

func Bool

func Bool(t bool) NullBool

Bool returns a NullBool instance

func (NullBool) MarshalJSON

func (v NullBool) MarshalJSON() ([]byte, error)

MarshalJSON correctly serializes a NullBool to JSON.

func (*NullBool) UnmarshalJSON

func (v *NullBool) UnmarshalJSON(b []byte) error

UnmarshalJSON correctly deserializes a NullBool from JSON.

func (*NullBool) UnmarshalParam

func (v *NullBool) UnmarshalParam(src string) error

UnmarshalParam deserializes NullFloat64 from form,query for echo.Context.Bind

type NullFloat64

type NullFloat64 struct {
	sql.NullFloat64
}

NullFloat64 is a wrapper of sql.NullFloat64

func Float64

func Float64(f float64) NullFloat64

Float64 returns a NullFloat64 instance

func (NullFloat64) MarshalJSON

func (v NullFloat64) MarshalJSON() ([]byte, error)

MarshalJSON serializes NullFloat64 to JSON

func (*NullFloat64) UnmarshalJSON

func (v *NullFloat64) UnmarshalJSON(b []byte) error

UnmarshalJSON deserializes NullFloat64 from JSON

func (*NullFloat64) UnmarshalParam

func (v *NullFloat64) UnmarshalParam(src string) error

UnmarshalParam deserializes NullFloat64 from form,query for echo.Context.Bind

type NullInt64

type NullInt64 struct {
	sql.NullInt64
}

NullInt64 is a wrapper of sql.NullInt64

func Int64

func Int64(n int64) NullInt64

Int64 returns a NullInt64 instance

func (NullInt64) MarshalJSON

func (v NullInt64) MarshalJSON() ([]byte, error)

MarshalJSON serializes NullInt64 to JSON.

func (*NullInt64) UnmarshalJSON

func (v *NullInt64) UnmarshalJSON(b []byte) error

UnmarshalJSON deserializes NullInt64 from JSON

func (*NullInt64) UnmarshalParam

func (v *NullInt64) UnmarshalParam(src string) error

UnmarshalParam deserializes NullInt64 from form,query for echo.Context.Bind

type NullString

type NullString struct {
	sql.NullString
}

NullString is a wrapper of sql.NullString

func String

func String(s string) NullString

String returns a NullString instance

func (NullString) MarshalJSON

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

MarshalJSON serializes NullString to JSON

func (*NullString) UnmarshalJSON

func (v *NullString) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler for NullString

func (*NullString) UnmarshalParam

func (v *NullString) UnmarshalParam(src string) error

UnmarshalParam deserializes NullString from form,query for echo.Context.Bind

type NullTime

type NullTime struct {
	sql.NullTime
}

NullTime is a wrapper of sql.NullTime

func Time

func Time(t time.Time) NullTime

Time returns a NullTime instance

func (NullTime) MarshalJSON

func (v NullTime) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Mashaler

func (*NullTime) UnmarshalJSON

func (v *NullTime) UnmarshalJSON(b []byte) error

UnmarshalJSON correctly deserializes a NullTime from JSON.

func (*NullTime) UnmarshalParam

func (v *NullTime) UnmarshalParam(src string) error

UnmarshalParam deserializes NullFloat64 from form,query for echo.Context.Bind

type StringArray

type StringArray pq.StringArray

StringArray ...

func (*StringArray) Scan

func (sa *StringArray) Scan(v interface{}) error

Scan

func (StringArray) StringSlice

func (sa StringArray) StringSlice() []string

StringSlice

func (StringArray) Value

func (sa StringArray) Value() (driver.Value, error)

Value

Jump to

Keyboard shortcuts

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