Skip to main content

prepare_owned

Function prepare_owned 

Source
pub fn prepare_owned(
    connection: &Arc<Mutex<RawConnection<SyncStream>>>,
    query: &str,
    param_types: &[Oid],
) -> Result<OwnedPreparedStatement>
Expand description

Creates an owned prepared statement that automatically closes when dropped.

ยงErrors

Propagates any error from prepare.