pub trait Prepared:
Any
+ Send
+ Sync
+ Display
+ Debug {
// Required methods
fn as_any(self: Box<Self>) -> Box<dyn Any>;
fn clear_bindings(&mut self) -> Result<&mut Self>
where Self: Sized;
fn bind(&mut self, value: impl AsValue) -> Result<&mut Self>
where Self: Sized;
fn bind_index(
&mut self,
value: impl AsValue,
index: u64,
) -> Result<&mut Self>
where Self: Sized;
// Provided method
fn is_empty(&self) -> bool { ... }
}Expand description
Parameterized, backend-prepared query handle.
Enables pre-parsing and parameter binding.
§Semantics
bind: Append value.bind_index: Set value at 0-based index.
Required Methods§
fn as_any(self: Box<Self>) -> Box<dyn Any>
Sourcefn clear_bindings(&mut self) -> Result<&mut Self>where
Self: Sized,
fn clear_bindings(&mut self) -> Result<&mut Self>where
Self: Sized,
Clear all bindings.