datatypes

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Array added in v1.8.0

type Array[T any] []T

type FloatArray added in v1.8.0

type FloatArray[T constraints.Float] []T

func (*FloatArray[T]) Scan added in v1.8.0

func (d *FloatArray[T]) Scan(value interface{}) error

func (FloatArray[T]) Value added in v1.8.0

func (d FloatArray[T]) Value() (driver.Value, error)

type IntArray

type IntArray[T constraints.Integer] []T

adpter postgres

func (*IntArray[T]) Scan

func (d *IntArray[T]) Scan(value interface{}) error

func (IntArray[T]) Value

func (d IntArray[T]) Value() (driver.Value, error)

type JSON

type JSON map[string]any

func (JSON) GormDataType

func (JSON) GormDataType() string

func (*JSON) Scan

func (j *JSON) Scan(value interface{}) error

实现 sql.Scanner 接口,Scan 将 value 扫描至 Jsonb

func (JSON) Value

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

实现 driver.Valuer 接口,Value 返回 json value

type JSONB added in v1.8.0

type JSONB json.RawMessage

func (JSONB) GormDataType added in v1.8.0

func (JSONB) GormDataType() string

func (*JSONB) Scan added in v1.8.0

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

实现 sql.Scanner 接口,Scan 将 value 扫描至 Jsonb

func (JSONB) Value added in v1.8.0

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

实现 driver.Valuer 接口,Value 返回 json value

type JSONStr added in v1.8.0

type JSONStr string

func (JSONStr) GormDataType added in v1.8.0

func (JSONStr) GormDataType() string

func (*JSONStr) Scan added in v1.8.0

func (j *JSONStr) Scan(value interface{}) error

实现 sql.Scanner 接口,Scan 将 value 扫描至 Jsonb

func (JSONStr) Value added in v1.8.0

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

实现 driver.Valuer 接口,Value 返回 json value

type StringArray added in v1.8.0

type StringArray []string

func (*StringArray) Scan added in v1.8.0

func (d *StringArray) Scan(value interface{}) error

func (StringArray) Value added in v1.8.0

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

Jump to

Keyboard shortcuts

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