minime/src/sql
Tau e95071822a sql: Add "maintenance transaction" system
SQLite's ALTER TABLE functionality leaves a lot to be desired, so
in practice the way you alter SQLite schema is to create a new
table, migrate the data into it, then drop the old table. However,
this is potentially complicated by the presence of foreign key
constraints.

In order to resolve the foreign key constraint issue we add a
`maintenance()` method to the `DataSource` abstraction layer. This
operates similarly to the existing `transaction()` method, but the
SQLite implementation of this method defers enforcement of foreign
keys until the transaction is about to commit.
2021-02-03 23:43:38 +00:00
..
api.ts sql: Add "maintenance transaction" system 2021-02-03 23:43:38 +00:00
index.ts Heal the layer break around the Id<> type 2019-11-06 17:29:07 -05:00
sqlite.test.ts sql: Add "maintenance transaction" system 2021-02-03 23:43:38 +00:00
sqlite.ts sql: Add "maintenance transaction" system 2021-02-03 23:43:38 +00:00
util.ts sql: Add NULL support to database wrappers 2020-03-22 22:38:54 +00:00