Enum sqlx_macros_core::query::QueryDataSource
source · pub enum QueryDataSource<'a> {
Live {
database_url: &'a str,
database_url_parsed: Url,
},
Cached(DynQueryData),
}
Variants§
Implementations§
source§impl<'a> QueryDataSource<'a>
impl<'a> QueryDataSource<'a>
pub fn live(database_url: &'a str) -> Result<Self>
pub fn matches_driver(&self, driver: &QueryDriver) -> bool
Auto Trait Implementations§
impl<'a> Freeze for QueryDataSource<'a>
impl<'a> RefUnwindSafe for QueryDataSource<'a>
impl<'a> Send for QueryDataSource<'a>
impl<'a> Sync for QueryDataSource<'a>
impl<'a> Unpin for QueryDataSource<'a>
impl<'a> UnwindSafe for QueryDataSource<'a>
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