Skip to content

Instance Method

write(_:)

Send data for a COPY ... FROM STDIN operation to the backend.
func write(_ byteBuffer: ByteBuffer) async throws

Discussion

Throws

If an error occurs during the write or if the backend sent an ErrorResponse during the copy operation, e.g. to indicate that a previous write call had an invalid format.