(name string, rowCount int64, columns []map[string]any, indexes []map[string]any)
| 43 | } |
| 44 | |
| 45 | func makeTable(name string, rowCount int64, columns []map[string]any, indexes []map[string]any) map[string]any { |
| 46 | t := map[string]any{ |
| 47 | "name": name, |
| 48 | "rowCount": fmt.Sprintf("%d", rowCount), |
| 49 | "columns": columns, |
| 50 | } |
| 51 | if len(indexes) > 0 { |
| 52 | t["indexes"] = indexes |
| 53 | } |
| 54 | return t |
| 55 | } |
| 56 | |
| 57 | func makeColumn(name, typ string, nullable bool) map[string]any { |
| 58 | return map[string]any{ |
no outgoing calls
no test coverage detected