sql/extensions/history/indb
Written to: 1 requirement: 1 proved, 0 partly, 0 failing, 0 with no test recorded. 0018-sql-history FR-009
The runner inside the database (commons data 0018-sql-history FR-009): an installer that makes a schema, a ledger (each entry chained to the one before it by hash) and a procedure migrate that takes a lock, checks the chain, finds where the database is, refuses one that is not where the next step starts, runs each step not yet applied with its guards and its verification, writes its entry and applies what extensions add. Run again it does nothing; a ledger entry that was changed makes it refuse.
Source: commons/data/sql/extensions/history/indb.ts
1 of 2 exports are imported by a test of the run. A test that imports an export may not call it or check what it returns.
function installer(history: { readonly from: string; readonly steps: readonly FrozenStep[]; readonly repeatable: readonly Repeatable[]; }, dialect: Dialect, settings: History, options?: { readonly before?: readonly string[] | undefined; }): Result<readonly Artifact[], readonly InstallerError[]>
The installer of the runner.
| Parameter | What it is |
|---|
history | the steps and the objects that are applied again |
dialect | the dialect |
settings | the settings |
options | the hash of the state of an empty database and what is run at the start of each step |
Returns: the installer, or why the dialect cannot hold one
Imported by 7 tests of the run (7 passed, 0 failed): the library's results
InstallerErrortypeno test imports ittype InstallerError = { readonly kind: "unsupported"; readonly why: string };
What is wrong with an installer.