sql/cli/workstation-checks
Written to: 1 requirement: 1 proved, 0 partly, 0 failing, 0 with no test recorded. 0047-arcactl-init FR-015
The checks of a workstation (commons data 0047-arcactl-init FR-015): psql is there and new enough for the helper file, .pgpass is one libpq will use, the default instance has its service, the psqlrc block and the file it includes are current, each profile that arcactl wrote has its block and the cache it sources is the script as it would be made now, and the default instance can be reached. Each says what to do, and each is read-only. arcactl init ends by running them.
Source: commons/data/sql/cli/workstation-checks.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.
Workstationinterfaceno test imports itinterface Workstation
What the workstation checks are given.
| Member | Type | What it is |
|---|
paths | Paths | |
state | State | |
psqlVersion? | (() => string | undefined) | How psql --version is asked; the real one by default. |
connect? | ((o: ConnectOptions) => Promise<Connection>) | |
function workstationChecks(w: Workstation, only?: readonly string[] | undefined): Promise<Report>
Runs the checks of a workstation.
Imported by 8 tests of the run (8 passed, 0 failed): the library's results
workstationIdsconstno test imports itconst workstationIds: readonly string[]
The ids of the workstation checks.