[][src]Trait sqlx::Execute

pub trait Execute<'q, DB>: Send where
    DB: Database
{ fn into_parts(self) -> (&'q str, Option<<DB as Database>::Arguments>); }

A type that may be executed against a database connection.

Required methods

fn into_parts(self) -> (&'q str, Option<<DB as Database>::Arguments>)

Returns the query to be executed and the arguments to bind against the query, if any.

Returning None for Arguments indicates to use a "simple" query protocol and to not prepare the query. Returning Some(Default::default()) is an empty arguments object that will be prepared (and cached) before execution.

Loading content...

Implementations on Foreign Types

impl<'q, DB> Execute<'q, DB> for &'q str where
    DB: Database
[src]

Loading content...

Implementors

impl<'q, DB> Execute<'q, DB> for Query<'q, DB> where
    DB: Database
[src]

impl<'q, DB, O> Execute<'q, DB> for QueryAs<'q, DB, O> where
    DB: Database,
    O: Send
[src]

Loading content...