LiveVersioninterfaceno test imports itinterface LiveVersionA live version: its label and the logical schema it was made from.
| Member | Type | What it is |
|---|---|---|
label | string | |
schema | LogicalSchema |
The views of each live version (commons data 0020-sql-parallel-versions FR-003 to FR-006): a schema of its own for each version, with a view of each of the version's tables under the version's names, over the tables the expanded schema makes. A column the version knows by another name is selected under the version's; a column of another version is not shown.
LiveVersioninterfaceno test imports itinterface LiveVersionA live version: its label and the logical schema it was made from.
| Member | Type | What it is |
|---|---|---|
label | string | |
schema | LogicalSchema |
Rolloutinterfaceno test imports itinterface RolloutThe settings with every default filled.
| Member | Type | What it is |
|---|---|---|
pattern | string | |
primary | string | undefined | |
grants | boolean |
RolloutSettingsinterfaceno test imports itinterface RolloutSettingsWhat a project says of the overlap; what is not said is the default.
| Member | Type | What it is |
|---|---|---|
pattern? | string | The name of a version's schema, with {label} where the label goes; api_{label} by default. |
primary? | string | The label of the version whose views the protection layer makes, which are not made here. |
grants? | "off" | "on" | Whether the roles governance names are granted on a version's views; on by default. |
retireStatementsfunctionfunction retireStatements(version: LiveVersion, dialect: Dialect, naming: Naming, given?: RolloutSettings): readonly string[]The statements that retire a version: its schema is dropped, or its views where the dialect has no schemas.
| Parameter | What it is |
|---|---|
version | the version |
dialect | the dialect |
naming | the case styles |
given | what a project says |
Returns: the statements, safe to run twice
schemaOfconstconst schemaOf: (label: string, settings: Rollout) => stringThe name of a version's schema.
versionViewsfunctionfunction versionViews(versions: readonly LiveVersion[], given?: RolloutSettings): StatementSourceThe source of the views of the live versions.
| Parameter | What it is |
|---|---|
versions | the live versions, oldest first |
given | what a project says |
Returns: a statement source