mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-22 00:24:19 +01:00
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:
12
wallet/db_queries_sqlite3.c
Normal file
12
wallet/db_queries_sqlite3.c
Normal 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 */
|
||||
Reference in New Issue
Block a user