mirror of
https://github.com/aljazceru/lightning.git
synced 2026-02-23 15:04:19 +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:
@@ -253,8 +253,8 @@ static bool db_sqlite3_vacuum(struct db *db)
|
||||
|
||||
struct db_config db_sqlite3_config = {
|
||||
.name = "sqlite3",
|
||||
.queries = db_sqlite3_queries,
|
||||
.num_queries = DB_SQLITE3_QUERY_COUNT,
|
||||
.query_table = db_sqlite3_queries,
|
||||
.query_table_size = ARRAY_SIZE(db_sqlite3_queries),
|
||||
.exec_fn = &db_sqlite3_exec,
|
||||
.query_fn = &db_sqlite3_query,
|
||||
.step_fn = &db_sqlite3_step,
|
||||
|
||||
Reference in New Issue
Block a user