Logo GenPRES

Web Module

Reads the rows of a sheet of the spreadsheet named by the GENPRES_URL_ID setting. Raises an InvalidOperationException when the setting is absent, and returns an empty array when the sheet cannot be read.

Functions and values

Function or value Description

genpresUrlId

Full Usage: genpresUrlId

Returns: unit -> string option

The configured GENPRES_URL_ID, resolved on first use rather than at module initialisation, so it sees the process's final working directory and environment. Memoized, so .env is read at most once.

Returns: unit -> string option

getDataFromSheet sheet

Full Usage: getDataFromSheet sheet

Parameters:
    sheet : string - The sheet name

Returns: string array array

Get the data from the GenPres sheet.

sheet : string

The sheet name

Returns: string array array

Type something to start searching.