all

fun all(vararg anonymousParameters: SupportedValueType): ReadonlyArray<Any?>(source)

This method executes a prepared statement and returns all results as an array of objects. If the prepared statement does not return any results, this method returns an empty array. The prepared statement parameters are bound using the values in namedParameters and anonymousParameters.

Since

v22.5.0

Return

An array of objects. Each object corresponds to a row returned by executing the prepared statement. The keys and values of each object correspond to the column names and values of the row.

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 all(namedParameters: ReadonlyRecord<String, SupportedValueType>, vararg anonymousParameters: SupportedValueType): ReadonlyArray<Any?>(source)