mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 01:24:26 +01:00
wallet: db column manipulation helpers.
Removing columns and renaming them is easy in Postgres, hard in sqlite3. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -151,6 +151,13 @@ struct db_config {
|
||||
void (*teardown_fn)(struct db *db);
|
||||
|
||||
bool (*vacuum_fn)(struct db *db);
|
||||
|
||||
bool (*rename_column)(struct db *db,
|
||||
const char *tablename,
|
||||
const char *from, const char *to);
|
||||
bool (*delete_columns)(struct db *db,
|
||||
const char *tablename,
|
||||
const char **colnames, size_t num_cols);
|
||||
};
|
||||
|
||||
/* Provide a way for DB backends to register themselves */
|
||||
|
||||
Reference in New Issue
Block a user