pub enum DynQuery {
Raw(RawQuery),
Prepared(Box<dyn Prepared>),
}Expand description
Dyn compatible version of Query
Variants§
Implementations§
Source§impl DynQuery
impl DynQuery
pub fn new(value: String) -> Self
pub fn with_capacity(capacity: usize) -> Self
pub fn buffer(&mut self) -> &mut String
pub fn into_buffer(self) -> String
pub fn as_prepared<D: Driver>(&mut self) -> Option<&mut D::Prepared>
pub fn as_str(&self) -> &str
pub fn push_str(&mut self, s: &str)
pub fn push(&mut self, c: char)
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn metadata(&self) -> &QueryMetadata
pub fn metadata_mut(&mut self) -> &mut QueryMetadata
pub fn into_query<D: Driver>(self, _driver: D) -> Query<D>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DynQuery
impl !RefUnwindSafe for DynQuery
impl Send for DynQuery
impl Sync for DynQuery
impl Unpin for DynQuery
impl !UnwindSafe for DynQuery
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more