mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-20 07:34:24 +01:00
db: turn generated queries array into a simple hash table.
Since we have that functionality, let's use it. Also, make table const. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -275,8 +275,8 @@ static bool db_postgres_vacuum(struct db *db)
|
||||
|
||||
struct db_config db_postgres_config = {
|
||||
.name = "postgres",
|
||||
.queries = db_postgres_queries,
|
||||
.num_queries = DB_POSTGRES_QUERY_COUNT,
|
||||
.query_table = db_postgres_queries,
|
||||
.query_table_size = ARRAY_SIZE(db_postgres_queries),
|
||||
.exec_fn = db_postgres_exec,
|
||||
.query_fn = db_postgres_query,
|
||||
.step_fn = db_postgres_step,
|
||||
|
||||
Reference in New Issue
Block a user