use crate::collection::Collection;
mod delete;
mod find;
mod insert;
mod replace;
mod update;
pub use self::delete::Delete;
pub use self::find::Find;
pub use self::insert::Insert;
pub use self::replace::Replace;
pub use self::update::Update;
pub struct Query;
impl Query {
pub fn delete<C>() -> Delete<C>
where
C: Collection,
{
Delete::new()
}
pub fn find<C>() -> Find<C>
where
C: Collection,
{
Find::new()
}
pub fn insert<C>() -> Insert<C>
where
C: Collection,
{
Insert::new()
}
pub fn replace<C>() -> Replace<C>
where
C: Collection,
{
Replace::new()
}
pub fn update<C>() -> Update<C>
where
C: Collection,
{
Update::new()
}
}