(runtime *common.RuntimeContext, tableName string)
| 155 | } |
| 156 | |
| 157 | func dryRunTableCreateBody(runtime *common.RuntimeContext, tableName string) map[string]interface{} { |
| 158 | body := map[string]interface{}{"name": tableName} |
| 159 | if strings.TrimSpace(runtime.Str("fields")) == "" { |
| 160 | return body |
| 161 | } |
| 162 | fieldItems, err := parseJSONArray(newParseCtx(runtime), runtime.Str("fields"), "fields") |
| 163 | if err != nil { |
| 164 | body["fields"] = "<invalid_fields_json>" |
| 165 | return body |
| 166 | } |
| 167 | body["fields"] = fieldItems |
| 168 | return body |
| 169 | } |
| 170 | |
| 171 | func listEveryField(runtime *common.RuntimeContext, baseToken, tableID string) ([]map[string]interface{}, error) { |
| 172 | const pageLimit = 100 |
no test coverage detected