Documentation ¶
Overview ¶
Package mysql 提供一些使用 Go 操作 MySQL 时的帮助工具
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TimezoneCorrector ¶
type TimezoneCorrector interface { CorrectTimezoneFromDB(in time.Time) time.Time CorrectTimezoneToDB(in time.Time) time.Time }
TimezoneCorrector 根据解析后的 DB 数据, 修正一个时间所包含的时区信息
WARNING: beta use ONLY
func NewTimezoneCorrectorByQueryer ¶
func NewTimezoneCorrectorByQueryer(ctx context.Context, queryer Queryer) (TimezoneCorrector, error)
func NewTimezoneCorrectorBySelector ¶
func NewTimezoneCorrectorBySelector(ctx context.Context, selector Selector) (TimezoneCorrector, error)
Click to show internal directories.
Click to hide internal directories.