Skip to content
Sheetwrite

@sheetwrite/queries

QuerySessioninterface

Report a problem

On this page

Defines, removes and refreshes the saved queries of one grid.

Members

Methods

dispose(): void;

Aborts pending refreshes and removes the grid's query commands. Later refreshes resolve { status: "aborted" }, and later define and remove calls throw a SheetwriteError with code unavailable.

Declaration

View full TypeScript declaration
export interface QuerySession {
remove(id: string): ApplyTransactionResult;
refresh(
id: string,
): Promise<QueryRefreshResult>;
refreshAll(options?: QueryRefreshOptions): Promise<QueryRefreshResult>;
dispose(): void;
}

Referenced by

Public exports naming QuerySession