Skip to content
Sheetwrite

@sheetwrite/core

QueryCommandsinterface

Report a problem

On this page

What the Data commands need from a query session. Messages are for the user.

Members

Methods

define(query: SavedQuery): string | null;

Checks the plan in the engine, then saves it; returns why it was not saved, or null.

refresh(ids: readonly string[] | null, signal: AbortSignal): Promise<string | null>;

Refreshes the given queries, or every query with an output table when ids is null. Resolves to why nothing was written, or null when it was.

Declaration

View full TypeScript declaration
export interface QueryCommands {
define(query: SavedQuery): string | null;
refresh(
ids: readonly string[] | null,
signal: AbortSignal,
): Promise<string | null>;
}

Referenced by

Public exports naming QueryCommands