Skip to main content

close_statement

Function close_statement 

Source
pub fn close_statement(
    connection: &Arc<Mutex<RawConnection<SyncStream>>>,
    statement: &PreparedStatement,
) -> Result<()>
Expand description

Closes a prepared statement on the server.

ยงErrors

  • Returns Error (connection) if the connection mutex is poisoned.
  • Returns Error (server) if the server reports an ErrorResponse during Close/Sync.
  • Returns Error (I/O) / Error (closed) on wire-protocol I/O failure.