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

Function init

plugins/sql.c:2077–2088  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2075}
2076
2077static const char *init(struct command *init_cmd,
2078 const char *buf UNUSED, const jsmntok_t *config UNUSED)
2079{
2080 struct plugin *plugin = init_cmd->plugin;
2081 struct sql *sql = sql_of(plugin);
2082 sql->db = sqlite_setup(plugin);
2083 init_tablemap(plugin, &sql->tablemap);
2084 sql->waitcmd = aux_command(init_cmd);
2085
2086 plugin_set_memleak_handler(plugin, memleak_mark_tablemap);
2087 return NULL;
2088}
2089
2090static const struct plugin_command commands[] = { {
2091 "sql",

Callers

nothing calls this directly

Calls 5

sql_ofFunction · 0.85
sqlite_setupFunction · 0.85
init_tablemapFunction · 0.85
aux_commandFunction · 0.70

Tested by

no test coverage detected