nulltype

package module
v0.0.0-...-8ab7f48 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bool

type Bool struct {
	Data sql.NullBool
}

func NewBool

func NewBool(data *bool) Bool

func (*Bool) Get

func (t *Bool) Get() bool

func (*Bool) GetPtr

func (t *Bool) GetPtr() *bool

func (*Bool) MarshalJSON

func (t *Bool) MarshalJSON() ([]byte, error)

func (*Bool) Reset

func (t *Bool) Reset()

func (*Bool) Scan

func (t *Bool) Scan(value interface{}) error

func (*Bool) Set

func (t *Bool) Set(data bool)

func (*Bool) String

func (t *Bool) String() string

func (*Bool) UnmarshalJSON

func (t *Bool) UnmarshalJSON(data []byte) error

func (*Bool) Valid

func (t *Bool) Valid() bool

func (*Bool) Value

func (t *Bool) Value() (driver.Value, error)

type Byte

type Byte struct {
	Data sql.NullByte
}

func NewByte

func NewByte(data *byte) Byte

func (*Byte) Get

func (t *Byte) Get() byte

func (*Byte) GetPtr

func (t *Byte) GetPtr() *byte

func (*Byte) MarshalJSON

func (t *Byte) MarshalJSON() ([]byte, error)

func (*Byte) Reset

func (t *Byte) Reset()

func (*Byte) Scan

func (t *Byte) Scan(value interface{}) error

func (*Byte) Set

func (t *Byte) Set(data byte)

func (*Byte) String

func (t *Byte) String() string

func (*Byte) UnmarshalJSON

func (t *Byte) UnmarshalJSON(data []byte) error

func (*Byte) Valid

func (t *Byte) Valid() bool

func (*Byte) Value

func (t *Byte) Value() (driver.Value, error)

type Date

type Date struct {
	Data   sql.NullTime
	Format string
}

func NewDate

func NewDate(data *time.Time) Date

func NewDateFromTimestamppb

func NewDateFromTimestamppb(data *timestamppb.Timestamp) Date

func (*Date) Get

func (t *Date) Get() time.Time

func (*Date) GetPtr

func (t *Date) GetPtr() *time.Time

func (*Date) GetTimestamppb

func (t *Date) GetTimestamppb() *timestamppb.Timestamp

func (*Date) MarshalJSON

func (t *Date) MarshalJSON() ([]byte, error)

func (*Date) Reset

func (t *Date) Reset()

func (*Date) Scan

func (t *Date) Scan(value interface{}) error

func (*Date) Set

func (t *Date) Set(data time.Time)

func (Date) SetFormat

func (t Date) SetFormat(format string) Date

func (*Date) String

func (t *Date) String() string

func (*Date) ToString

func (t *Date) ToString(format string) string

func (*Date) ToStringPtr

func (t *Date) ToStringPtr(format string) *string

func (*Date) UnmarshalJSON

func (t *Date) UnmarshalJSON(data []byte) error

func (*Date) Valid

func (t *Date) Valid() bool

func (*Date) Value

func (t *Date) Value() (driver.Value, error)

type Float64

type Float64 struct {
	Data sql.NullFloat64
}

func NewFloat64

func NewFloat64(data *float64) Float64

func (*Float64) Get

func (t *Float64) Get() float64

func (*Float64) GetPtr

func (t *Float64) GetPtr() *float64

func (*Float64) MarshalJSON

func (t *Float64) MarshalJSON() ([]byte, error)

func (*Float64) Reset

func (t *Float64) Reset()

func (*Float64) Scan

func (t *Float64) Scan(value interface{}) error

func (*Float64) Set

func (t *Float64) Set(data float64)

func (*Float64) String

func (t *Float64) String() string

func (*Float64) UnmarshalJSON

func (t *Float64) UnmarshalJSON(data []byte) error

func (*Float64) Valid

func (t *Float64) Valid() bool

func (*Float64) Value

func (t *Float64) Value() (driver.Value, error)

type Int16

type Int16 struct {
	Data sql.NullInt16
}

func NewInt16

func NewInt16(data *int16) Int16

func (*Int16) Get

func (t *Int16) Get() int16

func (*Int16) GetPtr

func (t *Int16) GetPtr() *int16

func (*Int16) MarshalJSON

func (t *Int16) MarshalJSON() ([]byte, error)

func (*Int16) Reset

func (t *Int16) Reset()

func (*Int16) Scan

func (t *Int16) Scan(value interface{}) error

func (*Int16) Set

func (t *Int16) Set(data int16)

func (*Int16) String

func (t *Int16) String() string

func (*Int16) UnmarshalJSON

func (t *Int16) UnmarshalJSON(data []byte) error

func (*Int16) Valid

func (t *Int16) Valid() bool

func (*Int16) Value

func (t *Int16) Value() (driver.Value, error)

type Int32

type Int32 struct {
	Data sql.NullInt32
}

func NewInt32

func NewInt32(data *int32) Int32

func (*Int32) Get

func (t *Int32) Get() int32

func (*Int32) GetPtr

func (t *Int32) GetPtr() *int32

func (*Int32) MarshalJSON

func (t *Int32) MarshalJSON() ([]byte, error)

func (*Int32) Reset

func (t *Int32) Reset()

func (*Int32) Scan

func (t *Int32) Scan(value interface{}) error

func (*Int32) Set

func (t *Int32) Set(data int32)

func (*Int32) String

func (t *Int32) String() string

func (*Int32) UnmarshalJSON

func (t *Int32) UnmarshalJSON(data []byte) error

func (*Int32) Valid

func (t *Int32) Valid() bool

func (*Int32) Value

func (t *Int32) Value() (driver.Value, error)

type Int64

type Int64 struct {
	Data sql.NullInt64
}

func NewInt64

func NewInt64(data *int64) Int64

func (*Int64) Get

func (t *Int64) Get() int64

func (*Int64) GetPtr

func (t *Int64) GetPtr() *int64

func (*Int64) MarshalJSON

func (t *Int64) MarshalJSON() ([]byte, error)

func (*Int64) Reset

func (t *Int64) Reset()

func (*Int64) Scan

func (t *Int64) Scan(value interface{}) error

func (*Int64) Set

func (t *Int64) Set(data int64)

func (*Int64) String

func (t *Int64) String() string

func (*Int64) UnmarshalJSON

func (t *Int64) UnmarshalJSON(data []byte) error

func (*Int64) Valid

func (t *Int64) Valid() bool

func (*Int64) Value

func (t *Int64) Value() (driver.Value, error)

type String

type String struct {
	Data sql.NullString
}

func NewString

func NewString(data *string) String

func (*String) Get

func (t *String) Get() string

func (*String) GetPtr

func (t *String) GetPtr() *string

func (*String) MarshalJSON

func (t *String) MarshalJSON() ([]byte, error)

func (*String) Reset

func (t *String) Reset()

func (*String) Scan

func (t *String) Scan(value interface{}) error

func (*String) Set

func (t *String) Set(data string)

func (*String) String

func (t *String) String() string

func (*String) UnmarshalJSON

func (t *String) UnmarshalJSON(data []byte) error

func (*String) Valid

func (t *String) Valid() bool

func (*String) Value

func (t *String) Value() (driver.Value, error)

type Time

type Time struct {
	Data   sql.NullTime
	Format string
}

func NewTime

func NewTime(data *time.Time) Time

func NewTimeFromTimestamppb

func NewTimeFromTimestamppb(data *timestamppb.Timestamp) Time

func (*Time) Get

func (t *Time) Get() time.Time

func (*Time) GetPtr

func (t *Time) GetPtr() *time.Time

func (*Time) GetTimestamppb

func (t *Time) GetTimestamppb() *timestamppb.Timestamp

func (*Time) MarshalJSON

func (t *Time) MarshalJSON() ([]byte, error)

func (*Time) Reset

func (t *Time) Reset()

func (*Time) Scan

func (t *Time) Scan(value interface{}) error

func (*Time) Set

func (t *Time) Set(data time.Time)

func (Time) SetFormat

func (t Time) SetFormat(format string) Time

func (*Time) String

func (t *Time) String() string

func (*Time) ToString

func (t *Time) ToString(format string) string

func (*Time) ToStringPtr

func (t *Time) ToStringPtr(format string) *string

func (*Time) UnmarshalJSON

func (t *Time) UnmarshalJSON(data []byte) error

func (*Time) Valid

func (t *Time) Valid() bool

func (*Time) Value

func (t *Time) Value() (driver.Value, error)

Jump to

Keyboard shortcuts

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