sql/extensions/transforms/build
Written to: 3 requirements: 3 proved, 0 partly, 0 failing, 0 with no test recorded. 0023-sql-transforms FR-004, 0023-sql-transforms FR-006, 0023-sql-transforms FR-007
A build (commons data 0023-sql-transforms): each model made in one transaction with its tests, rolled back where a test of severity error finds a row, so that what was published is still there; the models that read it are not built; each built model is a row of the ledger.
Source: commons/data/sql/extensions/transforms/build.ts
2 of 3 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 build(driver: Driver, project: Project, only?: readonly string[] | undefined): Promise<BuildReport>
Builds a project.
| Parameter | What it is |
|---|
driver | the database |
project | the project |
only | the models to build; every model that reads them is built too; all where it is not said |
Returns: what the build did
Imported by 5 tests of the run (5 passed, 0 failed): the library's results
interface BuildReport
What a build did.
| Member | Type | What it is |
|---|
ok | boolean | Whether every model was built (or ephemeral). |
models | readonly ModelReport[] | |
Imported by 5 tests of the run (5 passed, 0 failed): the library's results
ModelReportinterfaceno test imports itinterface ModelReport
What a build did with one model.
| Member | Type | What it is |
|---|
name | string | |
outcome | "blocked" | "built" | "ephemeral" | "failed" | |
rows? | number | |
hash | string | |
findings | readonly Finding[] | |
error? | string | |
blockedBy? | string | The model that stopped it, for one that is blocked. |