Structure
PostgresDecodingError
An error that may happen when a
PostgresRow or PostgresCell is decoded to native Swift types.struct PostgresDecodingError
Topics
Structures
Operators
static func == (PostgresDecodingError, PostgresDecodingError) -> BoolReturns a Boolean value indicating whether two values are equal.
Instance Properties
let code: PostgresDecodingError.CodeThe decoding error codelet columnIndex: IntThe cell’s column index for which the decoding failedlet columnName: StringThe cell’s column name for which the decoding failedlet file: StringThe file the decoding was attempted in.let line: IntThe line the decoding was attempted in.let postgresData: ByteBuffer?A copy of the cell data which was attempted to be decodedlet postgresFormat: PostgresFormatThe cell’s postgres format for which the decoding failedlet postgresType: PostgresDataTypeThe cell’s postgres data type for which the decoding failedlet targetType: any Any.TypeThe Swift type the cell should have been decoded into.
Default Implementations
Relationships
Conforms To
Swift.CopyableSwift.CustomDebugStringConvertibleSwift.CustomStringConvertibleSwift.EquatableSwift.ErrorSwift.EscapableSwift.SendableSwift.SendableMetatype
See Also
Errors
enum PostgresErrorstruct PSQLErrorAn error that is thrown from the PostgresClient. Sendability enforced through copy-on-write semantics.