IF Commons GitHub

sql/extensions/safety/settings

Written to: 1 requirement: 1 proved, 0 partly, 0 failing, 0 with no test recorded. 0015-sql-safety FR-011

The settings of the safety features (commons data 0015-sql-safety FR-011): each feature is on unless a project switches it off, and every number and name has a default.

Source: commons/data/sql/extensions/safety/settings.ts

0 of 2 exports are imported by a test of the run. A test that imports an export may not call it or check what it returns.

Safetyinterfaceno test imports it
interface Safety

The settings with every default filled.

MemberTypeWhat it is
quarantineboolean
suffixes{ readonly column: string; readonly table: string; }
locksboolean
lockTimeoutMsnumber
statementTimeoutMsnumber
attemptsnumber
delayMsnumber
validateLaterboolean
verifyboolean
SafetySettingsinterfaceno test imports it
interface SafetySettings

What a project says of safety; what is not said is the default.

MemberTypeWhat it is
quarantine?"off" | "on"Whether a drop keeps what it removes in a quarantine table; on by default.
suffixes?{ readonly column?: string | undefined; readonly table?: string | undefined; }The last word of a quarantine table of a column and of a table; quarantine and quarantined by default.
locks?"off" | "on"Whether a step that changes a table asks for its locks with a timeout, and is tried again; on by default.
lockTimeoutMs?numberHow long a step waits for a lock, in milliseconds; 5000 by default.
statementTimeoutMs?numberHow long a statement of such a step may run, in milliseconds; 60000 by default.
attempts?numberHow many times a step is tried where it gives up on a lock; 3 by default.
delayMs?numberThe pause before the next try, in milliseconds, multiplied by the number of tries so far; 1000 by default.
validateLater?"off" | "on"Whether a constraint is added without checking the rows and then checked, where the dialect can; on by default.
verify?"off" | "on"Whether each step says what must be true after it and the run checks it; on by default.

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