IF Commons GitHub

logical/dialect

Written to: 4 requirements: 4 proved, 0 partly, 0 failing, 0 with no test recorded. 0002-query-language FR-002, 0002-query-language FR-004, 0002-query-language FR-001, 0002-query-language FR-005

The language (commons anyfs-query 0002-query-language FR-001, FR-002, FR-004, FR-005): the dialect anyfs, an instance of the SQL language library that extends its common ground with the like-words GLOB and ILIKE and the units of sizes and times; the catalog of its tables and scalar functions; and the profile that holds a query to one SELECT of one source. Registering the dialect in a registry is the one way the language library comes to know it, and it names nothing of AnyFS.

Source: commons/anyfs-query/src/logical/dialect.ts

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

UNITSconstno test imports it
const UNITS: readonly [{ readonly unit: "B"; readonly factor: 1; }, { readonly unit: "KB"; readonly factor: 1024; }, { r… (456 characters)
const UNITS: readonly [{ readonly unit: "B"; readonly factor: 1; }, { readonly unit: "KB"; readonly factor: 1024; }, { readonly unit: "MB"; readonly factor: number; }, { readonly unit: "GB"; readonly factor: number; }, { readonly unit: "S"; readonly factor: 1; }, { readonly unit: "M"; readonly factor: 60; }, { readonly unit: "H"; readonly factor: 3600; }, { readonly unit: "D"; readonly factor: 86400; }, { readonly unit: "W"; readonly factor: 604800; }]

The units that follow a number: sizes in powers of 1024 and times in seconds.

anyfsDialectconstno test imports it
const anyfsDialect: Dialect

The dialect of the language: the common ground, GLOB and ILIKE, and units after numbers.

FUNCTIONSconst
const FUNCTIONS: readonly FunctionSig[]

The scalar functions of the language, as the catalog types them.

Imported by 7 tests of the run (7 passed, 0 failed): the library's results

CATALOGconstno test imports it
const CATALOG: Catalog

The tables of the language as the catalog types them.

PROFILEconstno test imports it
const PROFILE: Profile

The profile: one SELECT of one source, with no join, subquery, set operation, WITH, window or aggregate; the table functions are the tables.

FUNCTION_SPECSconstno test imports it
const FUNCTION_SPECS: readonly FunctionSpec[]

The functions of the dialect as a registry holds them.

registryfunction
function registry(): Registry

A registry that holds the dialect and its functions, as a library outside the language library registers one.

Imported by 7 tests of the run (7 passed, 0 failed): the library's results

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