Package org.postgresql.pljava.example
Class ResultSetTest
- java.lang.Object
-
- org.postgresql.pljava.example.ResultSetTest
-
public class ResultSetTest extends Object
Provides afunction
that takes any SQLSELECT
query as a string, executes it, and returns theResultSet
produced as a single string column, the first row being a header, then one per row of theResultSet
, semicolons delimiting the original columns.- Author:
- Filip Hrbek
-
-
Constructor Summary
Constructors Constructor Description ResultSetTest(String selectSQL)
-
-
-
Constructor Detail
-
ResultSetTest
public ResultSetTest(String selectSQL) throws SQLException
- Throws:
SQLException
-
-
Method Detail
-
executeSelect
public static Iterator<String> executeSelect(String selectSQL) throws SQLException
- Throws:
SQLException
-
close
public void close()
-
-