mysql

package
v0.0.0-...-d95efa9 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefMysql

type DefMysql struct {
	*gorm.DB
}

func InitDef

func InitDef() *DefMysql

type JSONSerializer

type JSONSerializer struct {
}

JSONSerializer json序列化器

func (JSONSerializer) Scan

func (JSONSerializer) Scan(ctx context.Context, field *schema.Field, dst reflect.Value, dbValue interface{}) (err error)

Scan 实现 Scan 方法

func (JSONSerializer) Value

func (JSONSerializer) Value(ctx context.Context, field *schema.Field, dst reflect.Value, fieldValue interface{}) (interface{}, error)

Value 实现 Value 方法

Jump to

Keyboard shortcuts

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