(
tableName string,
data interface{},
refs *[]RowRef,
sel *qcode.Select,
)
| 290 | } |
| 291 | |
| 292 | func (rp *ResponseProcessor) processNode( |
| 293 | tableName string, |
| 294 | data interface{}, |
| 295 | refs *[]RowRef, |
| 296 | sel *qcode.Select, |
| 297 | ) { |
| 298 | switch v := data.(type) { |
| 299 | case map[string]interface{}: |
| 300 | rp.processObject(tableName, v, refs, sel) |
| 301 | case []interface{}: |
| 302 | for _, item := range v { |
| 303 | if obj, ok := item.(map[string]interface{}); ok { |
| 304 | rp.processObject(tableName, obj, refs, sel) |
| 305 | } |
| 306 | } |
| 307 | } |
| 308 | } |
| 309 | |
| 310 | func (rp *ResponseProcessor) processObject( |
| 311 | tableName string, |
no test coverage detected