| 1458 | } |
| 1459 | |
| 1460 | static struct command_result *param_tablename(struct command *cmd, |
| 1461 | const char *name, |
| 1462 | const char *buffer, |
| 1463 | const jsmntok_t *tok, |
| 1464 | struct table_desc **td) |
| 1465 | { |
| 1466 | struct sql *sql = sql_of(cmd->plugin); |
| 1467 | *td = strmap_getn(&sql->tablemap, buffer + tok->start, |
| 1468 | tok->end - tok->start); |
| 1469 | if (!*td) |
| 1470 | return command_fail_badparam(cmd, name, buffer, tok, |
| 1471 | "Unknown table"); |
| 1472 | return NULL; |
| 1473 | } |
| 1474 | |
| 1475 | static void json_add_column(struct json_stream *js, |
| 1476 | const char *dbname, |
nothing calls this directly
no test coverage detected