| 109 | } |
| 110 | |
| 111 | static char *datastore_key_fmt(const tal_t *ctx, const char **key) |
| 112 | { |
| 113 | char *ret = tal_strdup(ctx, "["); |
| 114 | for (size_t i = 0; i < tal_count(key); i++) |
| 115 | tal_append_fmt(&ret, "%s%s", i ? "," : "", key[i]); |
| 116 | tal_append_fmt(&ret, "]"); |
| 117 | return ret; |
| 118 | } |
| 119 | |
| 120 | static struct command_result *json_datastore(struct command *cmd, |
| 121 | const char *buffer, |
no test coverage detected