(schema *common.DataSource, tableName string)
| 1310 | } |
| 1311 | |
| 1312 | func 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 | |
| 1323 | func Query(db *gosql.DB, querySQL string, args ...interface{}) ([]map[string]string, error) { |
| 1324 | var ( |