mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-10-12 23:37:00 +08:00
dbeaver/pro#9047 added sql plan explain to CB (#4302)
* dbeaver/pro#9047 added sql plan explain to CB * dbeaver/pro#9047 added nullability annotations --------- Co-authored-by: Evgenia <139753579+EvgeniaBzzz@users.noreply.github.com>
This commit is contained in:
co-authored by
Evgenia
parent
0e402cd27d
commit
cea06eecae
+9
-1
@@ -17,6 +17,7 @@
|
||||
package io.cloudbeaver.service.sql;
|
||||
|
||||
import io.cloudbeaver.model.session.WebSession;
|
||||
import org.jkiss.code.NotNull;
|
||||
import org.jkiss.dbeaver.Log;
|
||||
import org.jkiss.dbeaver.model.exec.plan.DBCPlan;
|
||||
import org.jkiss.dbeaver.model.exec.plan.DBCPlanCostNode;
|
||||
@@ -32,14 +33,21 @@ public class WebSQLExecutionPlan {
|
||||
|
||||
private static final Log log = Log.getLog(WebSQLExecutionPlan.class);
|
||||
|
||||
@NotNull
|
||||
private final WebSession webSession;
|
||||
@NotNull
|
||||
private final DBCPlan plan;
|
||||
|
||||
public WebSQLExecutionPlan(WebSession webSession, DBCPlan plan) {
|
||||
public WebSQLExecutionPlan(@NotNull WebSession webSession, @NotNull DBCPlan plan) {
|
||||
this.webSession = webSession;
|
||||
this.plan = plan;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public DBCPlan getPlan() {
|
||||
return plan;
|
||||
}
|
||||
|
||||
public String getQuery() {
|
||||
return plan.getQueryString();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user