Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Array ¶
type Array[T any] []T
Array represents a PostgreSQL array for T. It implements the ArrayGetter and ArraySetter interfaces. It preserves PostgreSQL dimensions and custom lower bounds. Use FlatArray if these are not needed. 只支持一维数组,unsupported box
type FloatArray ¶
type FloatArray[T constraints.Float] []T
func (*FloatArray[T]) Scan ¶
func (d *FloatArray[T]) Scan(value interface{}) error
type Json ¶ added in v1.2.11
func (Json) GormDataType ¶ added in v1.2.11
type JsonArray ¶ added in v1.2.11
func (*JsonArray) GormDataType ¶ added in v1.2.11
type JsonArrayT ¶ added in v1.2.11
type JsonArrayT[T any] []T
func (*JsonArrayT[T]) GormDataType ¶ added in v1.2.11
func (*JsonArrayT[T]) GormDataType() string
func (*JsonArrayT[T]) Scan ¶ added in v1.2.11
func (j *JsonArrayT[T]) Scan(value interface{}) error
实现 sql.Scanner 接口,Scan 将 value 扫描至 Json
type JsonB ¶ added in v1.2.11
type JsonB []byte
func (*JsonB) GormDataType ¶ added in v1.2.11
type JsonStr ¶ added in v1.2.11
type JsonStr string
func (*JsonStr) GormDataType ¶ added in v1.2.11
type JsonT ¶ added in v1.2.11
type JsonT[T any] struct { Json *T }
func (*JsonT[T]) GormDataType ¶ added in v1.2.11
type StringArray ¶
type StringArray []string
func (*StringArray) Scan ¶
func (d *StringArray) Scan(value interface{}) error
Click to show internal directories.
Click to hide internal directories.