MCPcopy Create free account
hub / github.com/ElementsProject/lightning / sql_reqv

Function sql_reqv

plugins/bkpr/sql.c:24–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22}
23
24const 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
36static struct channel_event **channel_events(const tal_t *ctx,
37 const char *buf,

Callers 3

sql_reqFunction · 0.85
channel_events_from_sqlFunction · 0.85
chain_events_from_sqlFunction · 0.85

Calls 2

json_out_objFunction · 0.50
jsonrpc_request_syncFunction · 0.50

Tested by

no test coverage detected