database: pull out database code into a new module

We're going to reuse the database controllers for the accounting plugin
This commit is contained in:
niftynei
2022-01-03 12:45:35 -06:00
committed by Rusty Russell
parent 03c950bae8
commit ce12d2b8a9
37 changed files with 1478 additions and 1292 deletions

View File

@@ -0,0 +1,12 @@
#include "config.h"
#include "db_sqlite3_sqlgen.c"
#if HAVE_SQLITE3
struct db_query_set sqlite3_query_set = {
.name = "sqlite3",
.query_table = db_sqlite3_queries,
.query_table_size = ARRAY_SIZE(db_sqlite3_queries),
};
AUTODATA(db_queries, &sqlite3_query_set);
#endif /* HAVE_SQLITE3 */