Trait sqlx_core_oldapi::executor::Execute  
source · pub trait Execute<'q, DB: Database>: Send + Sized {
    // Required methods
    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
Required Methods§
sourcefn statement(&self) -> Option<&<DB as HasStatement<'q>>::Statement>
 
fn statement(&self) -> Option<&<DB as HasStatement<'q>>::Statement>
Gets the previously cached statement, if available.
sourcefn take_arguments(&mut self) -> Option<<DB as HasArguments<'q>>::Arguments>
 
fn take_arguments(&mut self) -> Option<<DB as HasArguments<'q>>::Arguments>
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.
sourcefn persistent(&self) -> bool
 
fn persistent(&self) -> bool
Returns true if the statement should be cached.