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