mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 23:24:27 +01:00
db: collapse the db_queries files into the generated ones
There's no reason to have these be independent of the generated files, all the data contained within them is 'formulaic'
This commit is contained in:
@@ -157,6 +157,13 @@ const struct db_query db_${f}_queries[] = {
|
||||
% endfor
|
||||
};
|
||||
|
||||
struct db_query_set ${f}_query_set = {
|
||||
.name = "${f}",
|
||||
.query_table = db_${f}_queries,
|
||||
.query_table_size = ARRAY_SIZE(db_${f}_queries),
|
||||
};
|
||||
|
||||
AUTODATA(db_queries, &${f}_query_set);
|
||||
#endif /* HAVE_${f.upper()} */
|
||||
|
||||
#endif /* LIGHTNINGD_WALLET_GEN_DB_${f.upper()} */
|
||||
|
||||
Reference in New Issue
Block a user