IF Commons GitHub

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 it
interface Workstation

What the workstation checks are given.

MemberTypeWhat it is
pathsPaths
stateState
psqlVersion?(() => string | undefined)How psql --version is asked; the real one by default.
connect?((o: ConnectOptions) => Promise<Connection>)
workstationChecksfunction
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 it
const workstationIds: readonly string[]

The ids of the workstation checks.

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