Skip to main content

copy_data

Function copy_data 

Source
pub fn copy_data(data: &[u8], buf: &mut BytesMut)
Expand description

Writes a copy data message.

Sends a chunk of COPY data to the server during COPY IN operation. The data format depends on the COPY format (text or binary).

ยงArguments

  • data - COPY data bytes
  • buf - Buffer to write the message to