pub struct Query<T>where
T: Entity + FromRowNamed,{ /* private fields */ }Implementations§
Source§impl<T> Query<T>where
T: Entity + FromRowNamed,
impl<T> Query<T>where
T: Entity + FromRowNamed,
pub fn new(table: &str, style: PlaceholderStyle) -> Self
pub fn with_db(self, db: Arc<DatabaseRef>) -> Self
pub fn Where(self, expr: Expr) -> Self
pub fn Join(self, join_type: JoinType, table: &str, on_expr: Expr) -> Self
pub fn OrderBy(self, ob: &str) -> Self
pub fn Top(self, n: i64) -> Self
pub fn to_sql(&self) -> (String, Vec<SqlParam>)
pub async fn to_list_async(self) -> Result<Vec<T>>
pub async fn to_single_async(self) -> Result<Option<T>>
pub async fn ToDictionaryKeyIntAsync(self) -> Result<HashMap<i32, T>>
pub async fn ToDictionaryKeyGuidAsync(self) -> Result<HashMap<Uuid, T>>
pub async fn ToDictionaryKeyStringAsync(self) -> Result<HashMap<String, T>>
Auto Trait Implementations§
impl<T> Freeze for Query<T>
impl<T> !RefUnwindSafe for Query<T>
impl<T> Send for Query<T>where
T: Send,
impl<T> Sync for Query<T>where
T: Sync,
impl<T> Unpin for Query<T>where
T: Unpin,
impl<T> !UnwindSafe for Query<T>
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