datatypes

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 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 JsonT

type JsonT[T any] datatypes.JsonT[T]

func (*JsonT[T]) GormDBDataType

func (*JsonT[T]) GormDBDataType(db *gorm.DB, field *schema.Field) string

func (JsonT[T]) GormValue added in v0.0.43

func (j JsonT[T]) GormValue(ctx context.Context, db *gorm.DB) clause.Expr

func (*JsonT[T]) Scan added in v0.0.43

func (j *JsonT[T]) Scan(v any) error

func (JsonT[T]) Value added in v0.0.43

func (j JsonT[T]) Value() (driver.Value, error)

type Location

type Location struct {
	X, Y float64
}

func (Location) GormDataType

func (loc Location) GormDataType() string

func (Location) GormValue

func (loc Location) GormValue(ctx context.Context, db *gorm.DB) clause.Expr

func (*Location) Scan

func (loc *Location) Scan(v interface{}) error

Scan 方法实现了 sql.Scanner 接口

Jump to

Keyboard shortcuts

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