IF Commons GitHub

sql/extensions/protected-access/guard

Written to: 3 requirements: 3 proved, 0 partly, 0 failing, 0 with no test recorded. 0014-sql-protected-access FR-005, 0014-sql-protected-access FR-006, 0014-sql-protected-access FR-007

What makes the layer enforced where the engine can (commons data 0014-sql-protected-access FR-005 to FR-007): the rights taken from everyone on the tables, the right to use the schema of the views given to the roles that governance names, and a guard that refuses to alter or drop a table or a column of the schema of the tables unless the session has said a migration is running.

Source: commons/data/sql/extensions/protected-access/guard.ts

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

enforcementfunctionno test imports it
function enforcement(dialect: Dialect, settings: Protection): { readonly enforced: boolean; readonly errors: readonly PhysicalError[]; }

Whether the layer is enforced on a dialect, or why it cannot be.

ParameterWhat it is
dialectthe dialect
settingsthe settings

Returns: whether it is enforced, and the error where it was asked for and cannot be

lacksconstno test imports it
const lacks: (dialect: Dialect) => readonly string[]

What a dialect lacks that enforcement needs, or nothing where it can enforce.

migrationSessionfunctionno test imports it
function migrationSession(dialect: Dialect, settings: Protection): readonly string[]

The statements that tell the guard a migration is running, to be run at the start of each transaction of a plan's run.

ParameterWhat it is
dialectthe dialect
settingsthe settings

Returns: the statements; none where the layer has no guard

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