Skip to main content

copy_fail

Function copy_fail 

Source
pub fn copy_fail(message: &str, buf: &mut BytesMut)
Expand description

Writes a copy fail message.

Aborts a COPY IN operation with an error message. The server responds with ErrorResponse.

ยงArguments

  • message - Error message explaining why COPY failed
  • buf - Buffer to write the message to