Origintypeno test imports ittype Origin = { readonly table: TableName; readonly place: string | undefined };What a query reads from: a table and, where the query names one, the place.
A query read (commons anyfs-query 0002-query-language FR-003, FR-004, FR-007): text to the plan of one SELECT of one source, through the parse, the profile, the binding of names and the types, with every failure one value of the closed type of problems and the span of what was wrong. The source is a table of the language, or a table function over a place: files('s3://bucket/prefix').
Origintypeno test imports ittype Origin = { readonly table: TableName; readonly place: string | undefined };What a query reads from: a table and, where the query names one, the place.
OutColumntypeno test imports ittype OutColumn = { readonly name: string; readonly type: Type };A column a query gives.
Analyzedtypeno test imports ittype Analyzed = {
readonly text: string;
readonly select: Select;
readonly origin: Origin;
readonly plan: Plan;
readonly bindings: Bindings;
/** The filter of the plan, as the planner simplified it. */
readonly predicate: Expr | undefined;
readonly columns: readonly OutColumn[];
};A query that is read, bound, typed and planned.
analyzefunctionfunction analyze(text: string): Result<Analyzed, QueryProblem>Reads a query and plans it.