pub struct Database<D: Driver>(/* private fields */);Expand description
The database instance.
Implementations§
Source§impl<D: Driver> Database<D>
impl<D: Driver> Database<D>
Sourcepub fn select<T: Table>(&self, table: T) -> Select<D, T>
pub fn select<T: Table>(&self, table: T) -> Select<D, T>
Construct a new Select operation for the given table.
Sourcepub fn insert<T: Table>(&self, table: T) -> Insert<D, T>
pub fn insert<T: Table>(&self, table: T) -> Insert<D, T>
Construct a new Insert operation for the given table.
Sourcepub fn update<T: Table>(&self, table: T) -> Update<D, T>
pub fn update<T: Table>(&self, table: T) -> Update<D, T>
Construct a new Update operation for the given table.
Sourcepub fn delete<T: Table>(&self, table: T) -> Delete<D, T>
pub fn delete<T: Table>(&self, table: T) -> Delete<D, T>
Construct a new Delete operation for the given table.
Trait Implementations§
Auto Trait Implementations§
impl<D> Freeze for Database<D>where
D: Freeze,
impl<D> RefUnwindSafe for Database<D>where
D: RefUnwindSafe,
impl<D> Send for Database<D>where
D: Send,
impl<D> Sync for Database<D>where
D: Sync,
impl<D> Unpin for Database<D>where
D: Unpin,
impl<D> UnwindSafe for Database<D>where
D: UnwindSafe,
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