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

Method AddTables

driver/common/tabletypes.go:49–57  ·  view source on GitHub ↗
(tables []*Table)

Source from the content-addressed store, hash-verified

47 return nil
48}
49func (sc *SchemaContext) AddTables(tables []*Table) (err error) {
50 for _, table := range tables {
51 sc.TableMap[table.TableName], err = NewTableContext(table)
52 if err != nil {
53 return err
54 }
55 }
56 return nil
57}
58
59// TableName is the table configuration
60// slave restrict replication to a given table

Callers

nothing calls this directly

Calls 1

NewTableContextFunction · 0.85

Tested by

no test coverage detected