pub struct TypedQueryBuilder<T>where
T: Table,{ /* private fields */ }Expand description
Entry point for typed queries created by client.from_typed::<T>().
Implementations§
Source§impl<T> TypedQueryBuilder<T>where
T: Table,
impl<T> TypedQueryBuilder<T>where
T: Table,
pub fn new(backend: QueryBackend, schema: String) -> TypedQueryBuilder<T>
Sourcepub fn select(self) -> SelectBuilder<T>
pub fn select(self) -> SelectBuilder<T>
Start a typed SELECT query (selects all columns by default).
Sourcepub fn select_columns(self, columns: &str) -> SelectBuilder<T>
pub fn select_columns(self, columns: &str) -> SelectBuilder<T>
Start a typed SELECT with specific columns.
Sourcepub fn insert(self, value: &T) -> InsertBuilder<T>
pub fn insert(self, value: &T) -> InsertBuilder<T>
Start a typed INSERT from a struct instance.
Sourcepub fn update(self, value: &T) -> UpdateBuilder<T>
pub fn update(self, value: &T) -> UpdateBuilder<T>
Start a typed UPDATE from a struct instance (updates non-PK columns).
Sourcepub fn delete(self) -> DeleteBuilder<T>
pub fn delete(self) -> DeleteBuilder<T>
Start a typed DELETE.
Sourcepub fn upsert(self, value: &T) -> UpsertBuilder<T>
pub fn upsert(self, value: &T) -> UpsertBuilder<T>
Start a typed UPSERT from a struct instance.
Auto Trait Implementations§
impl<T> Freeze for TypedQueryBuilder<T>
impl<T> !RefUnwindSafe for TypedQueryBuilder<T>
impl<T> Send for TypedQueryBuilder<T>
impl<T> Sync for TypedQueryBuilder<T>where
T: Sync,
impl<T> Unpin for TypedQueryBuilder<T>where
T: Unpin,
impl<T> !UnwindSafe for TypedQueryBuilder<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