static ResultSet executeStatement ( SQL sql ) throws SQLException { try ( SqlSession session = sqlSessionFactory . openSession ( true ) ) { try ( Connection conn = session . getConnection ( ) ) { try ( Statement stmt = conn . createStatement ( ) ) { return stmt . executeQuery ( sql . toString ( ) ) ; } } } }
For unit tests only