types

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JSONB

type JSONB json.RawMessage

JSONB defined JSONB data type, need to implements driver.Valuer, sql.Scanner interface

func (JSONB) GormDBDataType

func (JSONB) GormDBDataType(db *gorm.DB, field *schema.Field) string

GormDBDataType gorm db data type

func (JSONB) GormDataType

func (JSONB) GormDataType() string

GormDataType gorm common data type

func (JSONB) GormValue

func (js JSONB) GormValue(ctx context.Context, db *gorm.DB) clause.Expr

GormValue gorm db actual value nolint

func (JSONB) MarshalJSON

func (j JSONB) MarshalJSON() ([]byte, error)

MarshalJSON to output non base64 encoded []byte

func (*JSONB) Scan

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

Scan scan value into Jsonb, implements sql.Scanner interface

func (JSONB) String

func (j JSONB) String() string

func (*JSONB) UnmarshalJSON

func (j *JSONB) UnmarshalJSON(b []byte) error

UnmarshalJSON to deserialize []byte

func (JSONB) Value

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

Value return json value, implement driver.Valuer interface

Jump to

Keyboard shortcuts

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