Whether the transfer is still in progress, and with it whether the connection is still in copy mode and unusable for ordinary queries.
Abandons the transfer and returns the connection to a usable state.
Cancels the transfer if it is still running, so use { } cannot leave a connection in copy mode.
use { }
Ends the COPY IN operation and returns the number of rows affected.
Writes a chunk of data to the server.