Jdbc Cursor
open class JdbcCursor(preparedStatement: PreparedStatement, resultSet: ResultSet, onClose: () -> Unit) : SqlCursor
Content copied to clipboard
Iterate each row in resultSet and map the columns to Kotlin classes by calling getString, getLong etc. Use next to retrieve the next row and close to close the connection.
Constructors
JdbcCursor
Link copied to clipboard
fun JdbcCursor(preparedStatement: PreparedStatement, resultSet: ResultSet, onClose: () -> Unit)
Content copied to clipboard