use of org.jkiss.dbeaver.ext.db2.model.plan.DB2PlanAnalyser in project dbeaver by serge-rider.
the class DB2DataSource method planQueryExecution.
// --------------
// Plan Tables
// --------------
@Override
public DBCPlan planQueryExecution(DBCSession session, String query) throws DBCException {
String ptSchemaname = getExplainTablesSchemaName(session);
if (ptSchemaname == null) {
throw new DBCException(DB2Messages.dialog_explain_no_tables_found_ex);
}
DB2PlanAnalyser plan = new DB2PlanAnalyser(query, ptSchemaname);
plan.explain((JDBCSession) session);
return plan;
}
Aggregations