DbResultReader
Reads column values from a database result set.
All index parameters are 1-based (JDBC convention). Label-based access is available for order-independent decoding. After any get* call, use wasNull to check whether the value was SQL NULL.
Attributes
- Source
- DbCodec.scala
- Graph
-
- Supertypes
Members list
Value members
Abstract methods
Attributes
- Source
- DbCodec.scala
Attributes
- Source
- DbCodec.scala
Attributes
- Source
- DbCodec.scala
Attributes
- Source
- DbCodec.scala
Attributes
- Source
- DbCodec.scala
Attributes
- Source
- DbCodec.scala
Attributes
- Source
- DbCodec.scala
Attributes
- Source
- DbCodec.scala
Attributes
- Source
- DbCodec.scala
Attributes
- Source
- DbCodec.scala
Attributes
- Source
- DbCodec.scala
Attributes
- Source
- DbCodec.scala
Attributes
- Source
- DbCodec.scala
Attributes
- Source
- DbCodec.scala
Attributes
- Source
- DbCodec.scala
Attributes
- Source
- DbCodec.scala
Attributes
- Source
- DbCodec.scala
Attributes
- Source
- DbCodec.scala
Attributes
- Source
- DbCodec.scala
Attributes
- Source
- DbCodec.scala
Attributes
- Source
- DbCodec.scala
Attributes
- Source
- DbCodec.scala
Attributes
- Source
- DbCodec.scala
Attributes
- Source
- DbCodec.scala
Attributes
- Source
- DbCodec.scala
Attributes
- Source
- DbCodec.scala
Attributes
- Source
- DbCodec.scala
Attributes
- Source
- DbCodec.scala
Attributes
- Source
- DbCodec.scala
Attributes
- Source
- DbCodec.scala
Attributes
- Source
- DbCodec.scala
Attributes
- Source
- DbCodec.scala
Attributes
- Source
- DbCodec.scala
Attributes
- Source
- DbCodec.scala
Attributes
- Source
- DbCodec.scala
Concrete methods
Reads the array column at the given 1-based index as a flat Array[String].
Reads the array column at the given 1-based index as a flat Array[String].
Attributes
- Returns
-
the column's elements; a SQL
NULLarray decodes tonull - Throws
-
UnsupportedOperationException
by default — only backends with native array support override this
- Source
- DbCodec.scala
Reads the array column named label as a flat Array[String].
Reads the array column named label as a flat Array[String].
Attributes
- Returns
-
the column's elements; a SQL
NULLarray decodes tonull - Throws
-
UnsupportedOperationException
by default — only backends with native array support override this
- Source
- DbCodec.scala
Returns true if the column at the given 1-based index contains SQL NULL in the current row.
Returns true if the column at the given 1-based index contains SQL NULL in the current row.
Only backends that carry an out-of-band null bitmap can answer reliably before the column is decoded (a wire-protocol backend reads NULL flags from the row header). The JDBC backend records wasNull as each getter runs, so its answer is only meaningful after that column has been read; before the first read it reports false. The default reports false, which preserves the historical behavior: Option/Maybe codecs then fall back to the post-read wasNull check and decode the inner value as before.
Value parameters
- index
-
the 1-based column position
Attributes
- Returns
-
trueif the backend knows the column is NULL;falsewhen it is non-null or not yet known — callers must treatfalseas "unknown", never as a confirmed non-null - Source
- DbCodec.scala
Label-based variant of isNull.
Label-based variant of isNull.
Value parameters
- label
-
the result-set column label
Attributes
- Returns
-
trueif the backend knows the named column is NULL;falsewhen it is non-null or not yet known (see isNull(index:Int) for the per-backend reliability contract) - Source
- DbCodec.scala