get
This method executes a prepared statement and returns the first result as an object. If the prepared statement does not return any results, this method returns undefined
. The prepared statement parameters are bound using the values in namedParameters
and anonymousParameters
.
Since
v22.5.0
Return
An object corresponding to the first row returned by executing the prepared statement. The keys and values of the object correspond to the column names and values of the row. If no rows were returned from the database then this method returns undefined
.
Parameters
namedParameters
An optional object used to bind named parameters. The keys of this object are used to configure the mapping.
anonymousParameters
Zero or more values to bind to anonymous parameters.
fun get(namedParameters: ReadonlyRecord<String, SupportedValueType>, vararg anonymousParameters: SupportedValueType): Any?(source)