Appearance
ExplainAsync Method
Definition
- Namespace:
JASE.Database - Assembly:
JASE.Database.dll
Overloads
| Name | Description |
|---|---|
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
| Name | Description |
|---|---|
cancellationToken | Token used to cancel the operation. |
options | Explain options; defaults to estimated plan only when null. |
session | Open 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
| Name | Description |
|---|---|
cancellationToken | Token used to cancel the operation. |
options | Explain options; defaults to estimated plan only when null. |
Returns
A QueryPlanResult for the generated SELECT statement.