xdatatype

package
v0.0.0-...-5e5f9fa Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Int64Array

type Int64Array []int64

mysql json 类型存储 [1, 2]

func (*Int64Array) Scan

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

Scan value into Jsonb, implements sql.Scanner interface

func (*Int64Array) Value

func (j *Int64Array) Value() (driver.Value, error)

Value return json value, implement driver.Valuer interface

type StringArray

type StringArray []string

mysql json 类型存储 ["a", "b"]

func (*StringArray) Scan

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

Scan value into Jsonb, implements sql.Scanner interface

func (*StringArray) Value

func (j *StringArray) Value() (driver.Value, error)

Value return json value, implement driver.Valuer interface

type TimeToInt64

type TimeToInt64 int64

time 转 int64 毫秒时间戳

func (*TimeToInt64) Scan

func (t *TimeToInt64) Scan(src interface{}) error

Scan implements sql.Scanner interface and scans value into Time,

func (*TimeToInt64) Value

func (t *TimeToInt64) Value() (driver.Value, error)

Value implements driver.Valuer interface and returns string format of Time.

Jump to

Keyboard shortcuts

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