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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetValue

func GetValue(db *gorm.DB, key string) (string, error)

func SetValue

func SetValue(db *gorm.DB, key, value string) error

Types

type DeletedAt

type DeletedAt time.Time

func (DeletedAt) DeleteClauses

func (d DeletedAt) DeleteClauses(f *schema.Field) []clause.Interface

func (DeletedAt) MarshalJSON

func (n DeletedAt) MarshalJSON() ([]byte, error)

func (DeletedAt) MarshalText

func (n DeletedAt) MarshalText() ([]byte, error)

func (DeletedAt) QueryClauses

func (DeletedAt) QueryClauses(f *schema.Field) []clause.Interface

func (DeletedAt) String

func (n DeletedAt) String() string

func (*DeletedAt) UnmarshalJSON

func (n *DeletedAt) UnmarshalJSON(b []byte) error

func (*DeletedAt) UnmarshalText

func (n *DeletedAt) UnmarshalText(b []byte) error

func (DeletedAt) UpdateClauses

func (d DeletedAt) UpdateClauses(f *schema.Field) []clause.Interface

type Dictionary

type Dictionary struct {
	Key   string
	Value string
}

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