Skip to content
Sheetwrite

@sheetwrite/queries

QuerySteptype

Report a problem

On this page

Saved step order is execution order; each column reference is a stable identity. In a saved query, a join input is the ID of another saved query.

Variants 7

{
readonly kind: "filter";
readonly predicate: QueryPredicate;
}
{
readonly kind: "select";
readonly columns: readonly string[];
}
{
readonly kind: "rename";
readonly columns: readonly (readonly [id: string, name: string])[];
}
{
readonly kind: "changeType";
readonly column: string;
readonly type: QueryColumnType;
readonly onError: "error" | "null";
}
{
readonly kind: "join";
readonly input: string;
readonly keys: readonly (readonly [left: string, right: string])[];
readonly join: QueryJoinKind;
}
{
readonly kind: "group";
readonly keys: readonly string[];
readonly aggregates: readonly QueryAggregate[];
}
{
readonly kind: "unpivot";
readonly columns: readonly string[];
readonly attribute: { readonly id: string; readonly name: string };
readonly value: { readonly id: string; readonly name: string };
}

Declaration

View full TypeScript declaration
export type QueryStep =
| {
readonly kind: "filter";
readonly predicate: QueryPredicate;
}
| {
readonly kind: "select";
readonly columns: readonly string[];
}
| {
readonly kind: "rename";
readonly columns: readonly (readonly [id: string, name: string])[];
}
| {
readonly kind: "changeType";
readonly column: string;
readonly type: QueryColumnType;
readonly onError: "error" | "null";
}
| {
readonly kind: "join";
readonly input: string;
readonly keys: readonly (readonly [left: string, right: string])[];
readonly join: QueryJoinKind;
}
| {
readonly kind: "group";
readonly keys: readonly string[];
readonly aggregates: readonly QueryAggregate[];
}
| {
readonly kind: "unpivot";
readonly columns: readonly string[];
readonly attribute: {
readonly id: string;
readonly name: string;
};
readonly value: {
readonly id: string;
readonly name: string;
};
};

Referenced by

Public exports naming QueryStep