sqltypes

package
v0.4.7 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const StdTime = "15:04:05"

StdTime provides default SQL TIME format

Variables

This section is empty.

Functions

This section is empty.

Types

type NullBool

type NullBool sql.NullBool

NullBool aliases sql.NullBool

func ToNullBool

func ToNullBool(b *bool) NullBool

ToNullBool creates a new NullBool

func (NullBool) MarshalJSON

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

MarshalJSON for NullBool

func (*NullBool) Scan

func (n *NullBool) Scan(src interface{}) error

Scan for NullBool

func (*NullBool) UnmarshalJSON

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

UnmarshalJSON for NullBool

func (NullBool) Value

func (n NullBool) Value() (driver.Value, error)

Value for NullBool

type NullFloat64

type NullFloat64 sql.NullFloat64

NullFloat64 aliases sql.NullFloat64

func ToNullFloat64

func ToNullFloat64(i *float64) NullFloat64

ToNullFloat64 returns a new NullFloat64

func (NullFloat64) MarshalJSON

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

MarshalJSON for NullFloat64

func (*NullFloat64) Scan

func (n *NullFloat64) Scan(src interface{}) error

Scan for NullFloat64

func (*NullFloat64) UnmarshalJSON

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

UnmarshalJSON for NullFloat64

func (NullFloat64) Value

func (n NullFloat64) Value() (driver.Value, error)

Value for NullFloat64

type NullInt64

type NullInt64 sql.NullInt64

NullInt64 aliases sql.NullInt64

func ToNullInt64

func ToNullInt64(i *int64) NullInt64

ToNullInt64 returns a new NullInt64

func (NullInt64) MarshalJSON

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

MarshalJSON for NullInt64

func (*NullInt64) Scan

func (n *NullInt64) Scan(src interface{}) error

Scan for NullInt64

func (*NullInt64) UnmarshalJSON

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

UnmarshalJSON for NullInt64

func (NullInt64) Value

func (n NullInt64) Value() (driver.Value, error)

Value for NullInt64

type NullString

type NullString sql.NullString

NullString aliases sql.NullString

func ToNullString

func ToNullString(s *string) NullString

ToNullString returns a new NullString

func (NullString) MarshalJSON

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

MarshalJSON for NullString

func (*NullString) Scan

func (n *NullString) Scan(src interface{}) error

Scan for NullString

func (*NullString) UnmarshalJSON

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

UnmarshalJSON for NullString

func (NullString) Value

func (n NullString) Value() (driver.Value, error)

Value for NullString

type NullTime

type NullTime sql.NullTime

NullTime aliases sql.NullTime

func ToNullTime

func ToNullTime(t time.Time) NullTime

ToNullTime creates a new NullTime

func (NullTime) MarshalJSON

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

MarshalJSON for NullTime

func (*NullTime) Scan

func (n *NullTime) Scan(src interface{}) error

Scan for NullTime

func (*NullTime) UnmarshalJSON

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

UnmarshalJSON for NullTime

func (NullTime) Value

func (n NullTime) Value() (driver.Value, error)

Value for NullTime

type RawJSON

type RawJSON json.RawMessage

RawJSON aliases json.RawMessage

func (RawJSON) MarshalJSON

func (n RawJSON) MarshalJSON() ([]byte, error)

MarshalJSON for NullString

func (*RawJSON) Scan

func (n *RawJSON) Scan(src interface{}) error

Scan for NullString

func (*RawJSON) UnmarshalJSON

func (n *RawJSON) UnmarshalJSON(b []byte) error

UnmarshalJSON for NullString

func (RawJSON) Value

func (n RawJSON) Value() (driver.Value, error)

Value for NullString

Jump to

Keyboard shortcuts

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