Skip to content

Instance Method

writeColumn(_:)

Serialize a single column to a row.
mutating func writeColumn(_ column: (some PostgresEncodable)?) throws

Discussion

Important

It is critical that that data type encoded here exactly matches the data type in the database. For example, if the database stores an a 4-byte integer the corresponding writeColumn must be called with an Int32. Serializing an integer of a different width will cause a deserialization failure in the backend.