JDBI v3.8.0 Release Notes
-
- ๐ New Features
RowViewMapper
lets you use higher levelRowView
in aRowMapper
.ResultIterable.first()
returns the first row. Throws an exception if there are zero rows.ResultIterable.one()
returns the only row. Throws an exception if there are zero or multiple rows.ResultIterable.findOne()
returns anOptional<T>
of the only row, orOptional.empty()
if there are zero rows, or the only row isnull
. Throws an exception if there are multiple rows.
- ๐ Deprecated API
ResultIterable.findOnly()
is deprecated, in favor of the new methodResultIterable.one()
.
- ๐ New Features