IF Commons GitHub

sql/extensions/generators/mod

Written to: 1 requirement: 1 proved, 0 partly, 0 failing, 0 with no test recorded. 0010-sql-generators FR-001

The generators (commons data 0010-sql-generators): diagrams in Mermaid and D2, the data dictionary in Markdown and HTML, row types in Rust and Zod, and the register of personal data and security. generators is all of them; generatorExtensions is each as an extension of the engine, sql.generate.<name>, which a project composes, drops from or adds to.

import { generate } from "@intellectual-frontiers/data/sql/physical";
import { generators } from "@intellectual-frontiers/data/sql/extensions/generators";
const files = generate(schema, { generators });

Source: commons/data/sql/extensions/generators/mod.ts

2 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.

generatorsconst
const generators: readonly Generator[]

Every generator of the library, in the order their files are made.

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

generatorExtensionsfunction
function generatorExtensions(version?: string): Result<readonly Extension[], IdError>

The generators as extensions of the engine, one each.

ParameterWhat it is
versionthe extensions' version

Returns: the extensions, or why an identifier is not one

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

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