IF Commons GitHub

sql/extensions/rollout/expand

Written to: 1 requirement: 1 proved, 0 partly, 0 failing, 0 with no test recorded. 0020-sql-parallel-versions FR-001

The expanded schema (commons data 0020-sql-parallel-versions FR-001): what the tables hold while versions overlap. The latest version's schema, with each column and table an older live version still uses and the latest does not have added as optional, and each column only the latest has made optional, so that an older version's writes are not refused. A column that governance says was renamed is the same column.

Source: commons/data/sql/extensions/rollout/expand.ts

1 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.

expandSchemafunction
function expandSchema(latest: LogicalSchema, older: readonly LogicalSchema[]): LogicalSchema

The schema the tables are made to during the overlap.

ParameterWhat it is
latestthe latest version's logical schema
olderthe logical schemas of the older live versions

Returns: the latest's schema with what the older versions still use kept, and what only the latest has made optional

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

matchColumnfunctionno test imports it
function matchColumn(table: Table, other: Column): Column | undefined

The column of a table that is the same column as another's, by its words or by what governance says it was called.

matchTablefunctionno test imports it
function matchTable(schema: LogicalSchema, other: Table): Table | undefined

The table of a schema that is the same table as another's, by its words or by what governance says it was called.

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