types

package
v3.30.1 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TaosBoolType      = reflect.TypeOf(TaosBool(false))
	TaosTinyintType   = reflect.TypeOf(TaosTinyint(0))
	TaosSmallintType  = reflect.TypeOf(TaosSmallint(0))
	TaosIntType       = reflect.TypeOf(TaosInt(0))
	TaosBigintType    = reflect.TypeOf(TaosBigint(0))
	TaosUTinyintType  = reflect.TypeOf(TaosUTinyint(0))
	TaosUSmallintType = reflect.TypeOf(TaosUSmallint(0))
	TaosUIntType      = reflect.TypeOf(TaosUInt(0))
	TaosUBigintType   = reflect.TypeOf(TaosUBigint(0))
	TaosFloatType     = reflect.TypeOf(TaosFloat(0))
	TaosDoubleType    = reflect.TypeOf(TaosDouble(0))
	TaosBinaryType    = reflect.TypeOf(TaosBinary(nil))
	TaosVarBinaryType = reflect.TypeOf(TaosVarBinary(nil))
	TaosNcharType     = reflect.TypeOf(TaosNchar(""))
	TaosTimestampType = reflect.TypeOf(TaosTimestamp{})
	TaosJsonType      = reflect.TypeOf(TaosJson(""))
	TaosGeometryType  = reflect.TypeOf(TaosGeometry(nil))
)

Functions

This section is empty.

Types

type ColumnType

type ColumnType struct {
	Type   reflect.Type
	MaxLen int
}

type NullBool

type NullBool struct {
	Inner bool
	Valid bool // Valid is true if Inner is not NULL
}

func (*NullBool) Scan

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

func (NullBool) Value

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

type NullFloat32

type NullFloat32 struct {
	Inner float32
	Valid bool // Valid is true if Inner is not NULL
}

func (*NullFloat32) Scan

func (n *NullFloat32) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullFloat32) String

func (n NullFloat32) String() string

func (NullFloat32) Value

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

type NullFloat64

type NullFloat64 struct {
	Inner float64
	Valid bool // Valid is true if Inner is not NULL
}

func (*NullFloat64) Scan

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

Scan implements the Scanner interface.

func (NullFloat64) String

func (n NullFloat64) String() string

func (NullFloat64) Value

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

type NullInt16

type NullInt16 struct {
	Inner int16
	Valid bool // Valid is true if Inner is not NULL
}

func (*NullInt16) Scan

func (n *NullInt16) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullInt16) String

func (n NullInt16) String() string

func (NullInt16) Value

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

Value implements the driver Valuer interface.

type NullInt32

type NullInt32 struct {
	Inner int32
	Valid bool // Valid is true if Inner is not NULL
}

func (*NullInt32) Scan

func (n *NullInt32) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullInt32) String

func (n NullInt32) String() string

func (NullInt32) Value

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

Value implements the driver Valuer interface.

type NullInt64

type NullInt64 struct {
	Inner int64
	Valid bool // Valid is true if Inner is not NULL
}

func (*NullInt64) Scan

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

Scan implements the Scanner interface.

func (NullInt64) String

func (n NullInt64) String() string

func (NullInt64) Value

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

Value implements the driver Valuer interface.

type NullInt8

type NullInt8 struct {
	Inner int8
	Valid bool // Valid is true if Inner is not NULL
}

func (*NullInt8) Scan

func (n *NullInt8) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullInt8) String

func (n NullInt8) String() string

func (NullInt8) Value

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

Value implements the driver Valuer interface.

type NullJson

type NullJson struct {
	Inner RawMessage
	Valid bool
}

func (*NullJson) Scan

func (n *NullJson) Scan(value interface{}) error

func (NullJson) Value

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

type NullString

type NullString struct {
	Inner string
	Valid bool // Valid is true if Inner is not NULL
}

func (*NullString) Scan

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

func (NullString) Value

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

type NullTime

type NullTime struct {
	Time  time.Time
	Valid bool // Valid is true if Time is not NULL
}

func (*NullTime) Scan

func (nt *NullTime) Scan(value interface{}) (err error)

Scan implements the Scanner interface. The value type must be time.Time or string / []byte (formatted time-string), otherwise Scan fails.

func (NullTime) Value

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

Value implements the driver Valuer interface.

type NullUInt16

type NullUInt16 struct {
	Inner uint16
	Valid bool // Valid is true if Inner is not NULL
}

func (*NullUInt16) Scan

func (n *NullUInt16) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullUInt16) String

func (n NullUInt16) String() string

func (NullUInt16) Value

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

Value implements the driver Valuer interface.

type NullUInt32

type NullUInt32 struct {
	Inner uint32
	Valid bool // Valid is true if Inner is not NULL
}

func (*NullUInt32) Scan

func (n *NullUInt32) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullUInt32) String

func (n NullUInt32) String() string

func (NullUInt32) Value

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

Value implements the driver Valuer interface.

type NullUInt64

type NullUInt64 struct {
	Inner uint64
	Valid bool // Valid is true if Inner is not NULL
}

func (*NullUInt64) Scan

func (n *NullUInt64) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullUInt64) String

func (n NullUInt64) String() string

func (NullUInt64) Value

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

Value implements the driver Valuer interface.

type NullUInt8

type NullUInt8 struct {
	Inner uint8
	Valid bool // Valid is true if Inner is not NULL
}

func (*NullUInt8) Scan

func (n *NullUInt8) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullUInt8) String

func (n NullUInt8) String() string

func (NullUInt8) Value

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

Value implements the driver Valuer interface.

type RawMessage

type RawMessage []byte

func (RawMessage) MarshalJSON

func (m RawMessage) MarshalJSON() ([]byte, error)

func (*RawMessage) UnmarshalJSON

func (m *RawMessage) UnmarshalJSON(data []byte) error

type TaosBigint

type TaosBigint int64

type TaosBinary

type TaosBinary []byte

type TaosBool

type TaosBool bool

type TaosDouble

type TaosDouble float64

type TaosFloat

type TaosFloat float32

type TaosGeometry

type TaosGeometry []byte

type TaosInt

type TaosInt int32

type TaosJson

type TaosJson []byte

type TaosNchar

type TaosNchar string

type TaosSmallint

type TaosSmallint int16

type TaosTimestamp

type TaosTimestamp struct {
	T         time.Time
	Precision int
}

type TaosTinyint

type TaosTinyint int8

type TaosUBigint

type TaosUBigint uint64

type TaosUInt

type TaosUInt uint32

type TaosUSmallint

type TaosUSmallint uint16

type TaosUTinyint

type TaosUTinyint uint8

type TaosVarBinary

type TaosVarBinary []byte

Jump to

Keyboard shortcuts

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