rgb-cln/db
Rusty Russell e853cdc3ff db: fix sqlite3 code which manipulates columns.
Because it used internal routines, it didn't pass operations through the
db hook!  So make it use the generic routines, with the twist that they
are not translated.

And when we use this in a migration hook, we're actually in a
transaction.

This, in turn, introduces an issue: we need to be outside a transaction
to "PRAGMA foreign_keys = OFF", but completing the transaction when
there is a db hook actually enters the io loop, freeing the tmpctx!

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2022-09-12 14:00:41 +02:00
..
Makefile database: pull out database code into a new module 2022-03-05 15:03:34 +10:30
bindings.c database: pull out database code into a new module 2022-03-05 15:03:34 +10:30
bindings.h database: pull out database code into a new module 2022-03-05 15:03:34 +10:30
common.h database: pull out database code into a new module 2022-03-05 15:03:34 +10:30
db_postgres.c db: fix sqlite3 code which manipulates columns. 2022-09-12 14:00:41 +02:00
db_sqlite3.c db: fix sqlite3 code which manipulates columns. 2022-09-12 14:00:41 +02:00
exec.c db: fix migrations which write to db. 2022-09-12 14:00:41 +02:00
exec.h database: pull out database code into a new module 2022-03-05 15:03:34 +10:30
utils.c db: fix sqlite3 code which manipulates columns. 2022-09-12 14:00:41 +02:00
utils.h db: fix sqlite3 code which manipulates columns. 2022-09-12 14:00:41 +02:00