Package io.github.connellite.jdbc
Class ResultSetStringStream
java.lang.Object
io.github.connellite.jdbc.ResultSetStringStream
Builds a sequential
Stream over ResultSetStringIterator rows. Close the stream (e.g. try-with-resources) to close JDBC resources.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ResultSetStringStream
public ResultSetStringStream()
-
-
Method Details
-
stream
public static Stream<Map<String,String>> stream(Connection connection, String sql, Object... params) throws SQLException - Parameters:
connection- connection used for the query; iterator closes statement/result set when the stream is closedsql- query executed once; forward-only read-only cursor- Throws:
SQLException
-
stream
- Parameters:
nps- bound named prepared statement; stream close closes statement and result set- Throws:
SQLException
-
stream
- Parameters:
resultSet- open result set; stream close closes this result set- Throws:
SQLException
-