Hi,
i would like to get the same text jist like the H2 Web Console when a plan is explained (Pls, see the attached picture), but I did not get it yet unfortunately.
Connection conn = ....
Statment st = con.createStatment("SELECT * FROM TABLE"),
st.executeQuery();
....
JdbcConnection jdbcConnection = (JdbcConnection) conn;
Session session = (Session) jdbcConnection.getSession();
Command current = session.getCurrentCommand(); //this method has been added to the Session class.
Parser parser = new Parser(session);
Prepared prepared = parser.prepare(current.toString()); //SELECT * FROM TABLE
Explain exp = new Explain(session);
exp.setCommand(prepared);
and next??
I've tried several things from here but without too much success.
Any idea?
Thanks in advance!
Pablo.