interface CubeDefinitionReadOptions {
    functions?: CubeDefinitionFunctions;
    getIngestDefinition?: (path: string) => undefined | PlainObject<T>;
    getSqlTree?: (sql: string) => unknown;
}

Properties

The user-defined functions the definition calls, as the host loaded them (loadCubeDefinitionFunctions): each call of one is opened into its body, in a container; without them a call is refused, as before (PLAN §11.33)

getIngestDefinition?: (path: string) => undefined | PlainObject<T>

The content (protocol JSON) of an ingest definition the lambda reads, by the definition's path (findCubeDefinitionIngestDefinitions), which types its data sets' columns; undefined for one the host doesn't have, whose data sets are drawn by name, the steps after them unchecked

getSqlTree?: (sql: string) => unknown

The engine's tree of the SQL of an island the definition holds (findCubeDefinitionSql), as its SQL grammar gives it (POST sql/v1/grammar/grammarToJson): the island is drawn as a container of its clauses' steps; undefined for SQL the host has no tree of, drawn as one box