Type parameters
Hierarchy
-
QueryExecution↳QueryReservation
Constructors
constructor
• new QueryReservation<Schema>(transport, reservation, recovery?)
Type parameters
Parameters
Overrides
QueryExecution.constructorProperties
transport
•Protected Readonly transport: QueryTransport
Inherited from
QueryExecution.transportexecutionId
•Readonly executionId: QueryExecutionId<Record<string, Value>>
Inherited from
QueryExecution.executionIdexpiresAt
•Readonly expiresAt: string
Methods
snapshot
▸Readonly snapshot(): QuerySnapshot<Row>
Returns
QuerySnapshot<Row>
Inherited from
QueryExecution.snapshotsubscribe
▸Readonly subscribe(listener): () => void
Parameters
Returns
fn
▸ (): void
Returns
void
Inherited from
QueryExecution.subscribeupdate
▸Protected update(change): void
Parameters
Returns
void
Inherited from
QueryExecution.updateget
▸ get():Promise<QueryExecutionState<Record<string, Value>>>
Returns
Promise<QueryExecutionState<Record<string, Value>>>
Inherited from
QueryExecution.getwait
▸ wait(options?): Promise<{ executionId: QueryExecutionId<Record<string, Value>> ; deadline: string ; expiresAt: string } & { state: "ready" ; plan: QueryPlan ; basis: { kind: "statement" ; provider: "snowflake" | "databricks" } | { kind: "federated" ; localRevision?: string ; remote: { kind: "statement" ; provider: "snowflake" | "databricks" ; tables: string[] }[] } ; rowCount: number }>
Parameters
Returns
Promise<{ executionId: QueryExecutionId<Record<string, Value>> ; deadline: string ; expiresAt: string } & { state: "ready" ; plan: QueryPlan ; basis: { kind: "statement" ; provider: "snowflake" | "databricks" } | { kind: "federated" ; localRevision?: string ; remote: { kind: "statement" ; provider: "snowflake" | "databricks" ; tables: string[] }[] } ; rowCount: number }>
Inherited from
QueryExecution.waitpages
▸ pages(options?): AsyncGenerator<QueryPage<Record<string, Value>>, any, unknown>
Parameters
Returns
AsyncGenerator<QueryPage<Record<string, Value>>, any, unknown>
Inherited from
QueryExecution.pagesresult
▸ result(options?): Promise<QueryResult<Record<string, Value>>>
Collect the same complete result, within the native row and byte bounds.
Parameters
Returns
Promise<QueryResult<Record<string, Value>>>
Inherited from
QueryExecution.resultcancel
▸ cancel():Promise<QueryControl<Record<string, Value>>>
Returns
Promise<QueryControl<Record<string, Value>>>
Inherited from
QueryExecution.cancelrelease
▸ release():Promise<QueryControl<Record<string, Value>>>
Returns
Promise<QueryControl<Record<string, Value>>>
Inherited from
QueryExecution.releasestart
▸ start<Plan>(query, bounds?): Promise<QueryExecution<QueryRow<Schema, Plan>>>
Type parameters
Parameters
Returns
Promise<QueryExecution<QueryRow<Schema, Plan>>>