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:
niftynei
2022-03-01 12:24:18 -06:00
committed by Rusty Russell
parent 453ef7f0ce
commit ea36c3a938
5 changed files with 10 additions and 34 deletions

View File

@@ -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()} */