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

Function findTableConfig

driver/oracle/extractor/log_miner.go:1312–1321  ·  view source on GitHub ↗
(schema *common.DataSource, tableName string)

Source from the content-addressed store, hash-verified

1310}
1311
1312func findTableConfig(schema *common.DataSource, tableName string) *common.Table {
1313 if schema != nil {
1314 for j := range schema.Tables {
1315 if schema.Tables[j].TableName == tableName {
1316 return schema.Tables[j]
1317 }
1318 }
1319 }
1320 return loadTableConfig(schema, tableName)
1321}
1322
1323func Query(db *gosql.DB, querySQL string, args ...interface{}) ([]map[string]string, error) {
1324 var (

Callers 5

TestParseDMLSQLFunction · 0.85
TestParseAlterTableFunction · 0.85
TestParseDropTableFunction · 0.85
parseDMLSQLMethod · 0.85
parseDDLSQLMethod · 0.85

Calls 1

loadTableConfigFunction · 0.85

Tested by 3

TestParseDMLSQLFunction · 0.68
TestParseAlterTableFunction · 0.68
TestParseDropTableFunction · 0.68