IF Commons GitHub

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.

buildfunction
function build(driver: Driver, project: Project, only?: readonly string[] | undefined): Promise<BuildReport>

Builds a project.

ParameterWhat it is
driverthe database
projectthe project
onlythe 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

BuildReportinterface
interface BuildReport

What a build did.

MemberTypeWhat it is
okbooleanWhether every model was built (or ephemeral).
modelsreadonly ModelReport[]

Imported by 5 tests of the run (5 passed, 0 failed): the library's results

ModelReportinterfaceno test imports it
interface ModelReport

What a build did with one model.

MemberTypeWhat it is
namestring
outcome"blocked" | "built" | "ephemeral" | "failed"
rows?number
hashstring
findingsreadonly Finding[]
error?string
blockedBy?stringThe model that stopped it, for one that is blocked.

Titles, headings, exports, tables, columns and requirements. Esc closes.