MCPcopy Create free account
hub / github.com/actiontech/dtle / findCurrentSchema

Method findCurrentSchema

driver/mysql/binlog/binlog_reader.go:1653–1663  ·  view source on GitHub ↗
(schemaName string)

Source from the content-addressed store, hash-verified

1651 }
1652}
1653func (b *BinlogReader) findCurrentSchema(schemaName string) *common.SchemaContext {
1654 if schemaName == "" {
1655 return nil
1656 }
1657 schemaContext, ok := b.tables[schemaName]
1658 if !ok {
1659 return nil
1660 }
1661
1662 return schemaContext
1663}
1664
1665func (b *BinlogReader) findSchemaConfig(schemaConfigs []*common.DataSource, schemaName string) *common.DataSource {
1666 if schemaName == "" {

Callers 5

handleQueryEventMethod · 0.95
updateTableMetaMethod · 0.95
handleRowsEventMethod · 0.95
addFKChildrenMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected