| 22 | } |
| 23 | |
| 24 | const jsmntok_t *sql_reqv(const tal_t *ctx, |
| 25 | struct command *cmd, |
| 26 | const char **buf, |
| 27 | const char *fmt, va_list ap) |
| 28 | { |
| 29 | struct json_out *params; |
| 30 | |
| 31 | params = json_out_obj(NULL, "query", take(tal_vfmt(NULL, fmt, ap))); |
| 32 | |
| 33 | return jsonrpc_request_sync(ctx, cmd, "sql", take(params), buf); |
| 34 | } |
| 35 | |
| 36 | static struct channel_event **channel_events(const tal_t *ctx, |
| 37 | const char *buf, |
no test coverage detected