governance.RELATIONSconstno test imports itconst RELATIONS: readonly Relation[]Every relation, in the order query tables lists them.
The relations of an estate, as data: each has a name, a sentence, and columns with a type and a sentence. The catalog the guard binds a query to, the help query tables prints and the documentation are all made from this one list, so that no relation is described twice.
import { RELATIONS, relationNamed } from "./relations.ts";
relationNamed("asset")?.columns.map((c) => c.name); // ["id", "kind", "state", "origin", "install"]governance.RELATIONSconstno test imports itconst RELATIONS: readonly Relation[]Every relation, in the order query tables lists them.
governance.relationNamedfunctionno test imports itfunction relationNamed(name: string): Relation | undefinedThe relation of a name, or nothing.
governance.Columntypeno test imports ittype Column = { readonly name: string; readonly type: ColumnType; readonly summary: string };A column of a relation.
governance.ColumnTypetypeno test imports ittype ColumnType = "int" | "text" | "bool" | "timestamp";The types of a column: whole numbers, text, true or false, and an instant or a day as text in ISO 8601 (which sorts as time does).
governance.Relationtypeno test imports ittype Relation = { readonly name: string; readonly summary: string; readonly columns: readonly Column[] };A relation of the estate.
RELATIONSconstconst RELATIONS: readonly Relation[]Every relation, in the order query tables lists them.
relationNamedfunctionno test imports itfunction relationNamed(name: string): Relation | undefinedThe relation of a name, or nothing.
Columntypeno test imports ittype Column = { readonly name: string; readonly type: ColumnType; readonly summary: string };A column of a relation.
ColumnTypetypeno test imports ittype ColumnType = "int" | "text" | "bool" | "timestamp";The types of a column: whole numbers, text, true or false, and an instant or a day as text in ISO 8601 (which sorts as time does).
Relationtypeno test imports ittype Relation = { readonly name: string; readonly summary: string; readonly columns: readonly Column[] };A relation of the estate.