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) GetTableMeta ¶
func (c *TableMetaCache) GetTableMeta(ctx context.Context, dbName, tableName string) (*types.TableMeta, error)
GetTableMeta get table info from cache or information schema
Click to show internal directories.
Click to hide internal directories.