mysql

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: May 29, 2023 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	EexpireTime = 15 * time.Minute
)

Functions

func NewMysqlTrigger

func NewMysqlTrigger() *mysqlTrigger

Types

type TableMetaCache

type TableMetaCache struct {
	// contains filtered or unexported fields
}

func NewTableMetaInstance

func NewTableMetaInstance(db *sql.DB) *TableMetaCache

func (*TableMetaCache) Destroy

func (c *TableMetaCache) Destroy() error

Destroy

func (*TableMetaCache) GetTableMeta

func (c *TableMetaCache) GetTableMeta(ctx context.Context, dbName, tableName string) (*types.TableMeta, error)

GetTableMeta get table info from cache or information schema

func (*TableMetaCache) Init

func (c *TableMetaCache) Init(ctx context.Context, conn *sql.DB) error

Init

Jump to

Keyboard shortcuts

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