Skip to content

ExplainAsync Method ​

Definition ​

  • Namespace: JASE.Database
  • Assembly: JASE.Database.dll

Overloads ​

NameDescription
Task<QueryPlanResult> ExplainAsync(QueryPlanOptions options = null, CancellationToken cancellationToken = null)Requests an explain / showplan for the current SELECT using the bound session.
Task<QueryPlanResult> ExplainAsync(IDatabaseSession session, QueryPlanOptions options = null, CancellationToken cancellationToken = null)Requests an explain / showplan for the current SELECT using the specified session.

Task<QueryPlanResult> ExplainAsync(IDatabaseSession session, QueryPlanOptions options = null, CancellationToken cancellationToken = null) ​

csharp
Task<QueryPlanResult> ExplainAsync(IDatabaseSession session, QueryPlanOptions options = null, CancellationToken cancellationToken = null)

Requests an explain / showplan for the current SELECT using the specified session.

Parameters ​

NameDescription
cancellationTokenToken used to cancel the operation.
optionsExplain options; defaults to estimated plan only when null.
sessionOpen database session used to collect the plan.

Returns ​

A QueryPlanResult for the generated SELECT statement.

Task<QueryPlanResult> ExplainAsync(QueryPlanOptions options = null, CancellationToken cancellationToken = null) ​

csharp
Task<QueryPlanResult> ExplainAsync(QueryPlanOptions options = null, CancellationToken cancellationToken = null)

Requests an explain / showplan for the current SELECT using the bound session.

Parameters ​

NameDescription
cancellationTokenToken used to cancel the operation.
optionsExplain options; defaults to estimated plan only when null.

Returns ​

A QueryPlanResult for the generated SELECT statement.