| 2075 | } |
| 2076 | |
| 2077 | static 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 | |
| 2090 | static const struct plugin_command commands[] = { { |
| 2091 | "sql", |
nothing calls this directly
no test coverage detected