Instance Method
all(decoding:with:)
Using the given
SQLRowDecoder, returns the output rows, if any, decoded as a given type.func all<D>(decoding type: D.Type, with decoder: SQLRowDecoder) async throws -> [D] where D : Decodable
Parameters
typeThe type of the desired values.
decoderA configured
SQLRowDecoderto use.
Return Value
The decoded values, if any.
See Also
Getting All Rows
func all() async throws -> [any SQLRow]Returns all output rows, if any.func all<D>(decoding: D.Type) async throws -> [D]Using a default-configuredSQLRowDecoder, returns all output rows, if any, decoded as a given type.func all<D>(decoding: D.Type, prefix: String?, keyDecodingStrategy: SQLRowDecoder.KeyDecodingStrategy, userInfo: [CodingUserInfoKey : any Sendable]) async throws -> [D]Configure a newSQLRowDecoderas specified and use it to decode and return the output rows, if any, as a given type.func all<D>(decodingColumn: String, as: D.Type) async throws -> [D]Returns the named column from each output row, if any, decoded as a given type.