pub trait Execute<'q, DB: Database>: Send + Sized {
    fn sql(&self) -> &'q str;
    fn statement(&self) -> Option<&<DB as HasStatement<'q>>::Statement>;
    fn take_arguments(&mut self) -> Option<<DB as HasArguments<'q>>::Arguments>;
    fn persistent(&self) -> bool;
}
Expand description

A type that may be executed against a database connection.

Implemented for the following:

Required Methods

Gets the SQL that will be executed.

Gets the previously cached statement, if available.

Returns the arguments to be bound against the query string.

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.

Returns true if the statement should be cached.

Implementations on Foreign Types

Implementors