PostgresByteA
public struct PostgresByteA:
PostgresValueConvertible, Equatable, Decodable, CustomStringConvertible
Represents a Postgres BYTEA value (a byte array).
-
Creates a
PostgresByteAfrom the specifiedData.Declaration
Swift
public init(data: Data)Parameters
datathe data
-
Creates a
PostgresByteAfrom the specified hex format string.The Postgres hex format encodes binary data as
\xfollowed by two hex digits per byte, most significant nibble first. Hex digitsatofcan be uppercase or lowercase.Declaration
Swift
public init?(_ hexEncoded: String)Parameters
hexEncodedthe hex format string
-
The
BYTEAvalue, as aData.Declaration
Swift
public let data: Data
-
A
PostgresValuefor thisPostgresByteA.Declaration
Swift
public var postgresValue: PostgresValue { get }
-
True if
lhs.data == rhs.data.Declaration
Swift
public static func == (lhs: PostgresByteA, rhs: PostgresByteA) -> Bool
-
Declaration
Swift
public init(from decoder: Decoder) throws
-
A short string that describes this
PostgresByteA.Declaration
Swift
public var description: String { get }