Documentation
¶
Index ¶
- type JSONArray
- func (JSONArray[T]) GormDBDataType(db *gorm.DB, field *schema.Field) string
- func (m JSONArray[T]) GormDataType() string
- func (m JSONArray[T]) GormValue(ctx context.Context, db *gorm.DB) clause.Expr
- func (m JSONArray[T]) MarshalJSON() ([]byte, error)
- func (m *JSONArray[T]) Scan(val interface{}) error
- func (m *JSONArray[T]) UnmarshalJSON(b []byte) error
- func (m JSONArray[T]) Value() (driver.Value, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JSONArray ¶
type JSONArray[T any] []T
JSONArray defined JSON data type, need to implements driver.Valuer, sql.Scanner interface
func (JSONArray[T]) GormDBDataType ¶
GormDBDataType gorm db data type
func (JSONArray[T]) GormDataType ¶
GormDataType gorm common data type
func (JSONArray[T]) MarshalJSON ¶
MarshalJSON to output non base64 encoded []byte
func (*JSONArray[T]) UnmarshalJSON ¶
UnmarshalJSON to deserialize []byte
Click to show internal directories.
Click to hide internal directories.