[−][src]Trait sqlx::Execute
A type that may be executed against a database connection.
Implemented for the following:
Required methods
fn sql(&self) -> &'q str
Gets the SQL that will be executed.
fn statement(&self) -> Option<&<DB as HasStatement<'q>>::Statement>
Gets the previously cached statement, if available.
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.
fn persistent(&self) -> bool
Returns true
if the statement should be cached.
Implementations on Foreign Types
impl<'q, DB> Execute<'q, DB> for &'q str where
DB: Database,
[src]
DB: Database,
pub fn sql(&self) -> &'q str
[src]
pub fn statement(&self) -> Option<&<DB as HasStatement<'q>>::Statement>
[src]
pub fn take_arguments(&mut self) -> Option<<DB as HasArguments<'q>>::Arguments>
[src]
pub fn persistent(&self) -> bool
[src]
impl<'q, DB> Execute<'q, DB> for (&'q str, Option<<DB as HasArguments<'q>>::Arguments>) where
DB: Database,
[src]
DB: Database,
pub fn sql(&self) -> &'q str
[src]
pub fn statement(&self) -> Option<&<DB as HasStatement<'q>>::Statement>
[src]
pub fn take_arguments(&mut self) -> Option<<DB as HasArguments<'q>>::Arguments>
[src]
pub fn persistent(&self) -> bool
[src]
Implementors
impl<'q, DB, A> Execute<'q, DB> for Query<'q, DB, A> where
A: Send + IntoArguments<'q, DB>,
DB: Database,
[src]
A: Send + IntoArguments<'q, DB>,
DB: Database,
pub fn sql(&self) -> &'q str
[src]
pub fn statement(&self) -> Option<&<DB as HasStatement<'q>>::Statement>
[src]
pub fn take_arguments(&mut self) -> Option<<DB as HasArguments<'q>>::Arguments>
[src]
pub fn persistent(&self) -> bool
[src]
impl<'q, DB, F, A> Execute<'q, DB> for Map<'q, DB, F, A> where
A: Send + IntoArguments<'q, DB>,
DB: Database,
F: Send,
[src]
A: Send + IntoArguments<'q, DB>,
DB: Database,
F: Send,
pub fn sql(&self) -> &'q str
[src]
pub fn statement(&self) -> Option<&<DB as HasStatement<'q>>::Statement>
[src]
pub fn take_arguments(&mut self) -> Option<<DB as HasArguments<'q>>::Arguments>
[src]
pub fn persistent(&self) -> bool
[src]
impl<'q, DB, O, A> Execute<'q, DB> for QueryAs<'q, DB, O, A> where
A: Send + 'q + IntoArguments<'q, DB>,
DB: Database,
O: Send,
[src]
A: Send + 'q + IntoArguments<'q, DB>,
DB: Database,
O: Send,
pub fn sql(&self) -> &'q str
[src]
pub fn statement(&self) -> Option<&<DB as HasStatement<'q>>::Statement>
[src]
pub fn take_arguments(&mut self) -> Option<<DB as HasArguments<'q>>::Arguments>
[src]
pub fn persistent(&self) -> bool
[src]
impl<'q, DB, O, A> Execute<'q, DB> for QueryScalar<'q, DB, O, A> where
A: Send + 'q + IntoArguments<'q, DB>,
DB: Database,
O: Send,
[src]
A: Send + 'q + IntoArguments<'q, DB>,
DB: Database,
O: Send,