pub fn prepare<E>(
    client: &Client,
    query: &str,
    name: &str,
    types_oid: &[Oid],
) -> Result<Statement, E>
where
    E: std::convert::From<crate::error::Error>,
{
    Ok(internal_prepare(client.inner(), query, name, types_oid)?)
}
/// Creates a new prepared statement.
///
/// Prepared statements can be executed repeatedly, and may contain query parameters (indicated by `$1`, `$2`, etc),
/// which are set when executed. Prepared statements can only be used with the connection that created them.
Creates a new prepared statement.
Prepared statements can be executed repeatedly, and may contain query parameters (indicated by `$1`, `$2`, etc),
which are set when executed. Prepared statements can only be used with the connection that created them.
Creates a new prepared statement . Prepared statements can be executed repeatedly and may contain query parameters ( indicated by ` $1 ` ` $2 ` etc ) which are set when executed . Prepared statements can only be used with the connection that created them .
pub fn prepare<E>(
    client: &Client,
    query: &str,
    name: &str,
    types_oid: &[Oid],
) -> Result<Statement, E>
where
    E: std::convert::From<crate::error::Error>,
{
    Ok(internal_prepare(client.inner(), query, name, types_oid)?)
}
pub fn prepare < E > ( client : & Client , query : & str , name : & str , types_oid : & [ Oid ] , ) -> Result < Statement , E > where E : std :: convert :: From < crate :: error :: Error > , { Ok ( internal_prepare ( client . inner ( ) , query , name , types_oid ) ? ) }
Creates a new prepared statement.
Creates a new prepared statement .
client
&Client
query
&str
name
&str
types_oid
&[Oid]
client
&Client
query
&str
name
&str
types_oid
&[Oid]