Trait QueryDb

Source
pub trait QueryDb<'d>: QueryBase {
    type DynDb: ?Sized + Database + HasQueryGroup<Self::Group> + 'd;
    type Db: Deref<Target = Self::DynDb> + AsAsyncDatabase<Self::DynDb>;
}
Expand description

Trait implements by all of the “special types” associated with each of your queries.

Base trait of Query that has a lifetime parameter to allow the DynDb to be non-’static.

Required Associated Types§

Source

type DynDb: ?Sized + Database + HasQueryGroup<Self::Group> + 'd

Dyn version of the associated trait for this query group.

Source

type Db: Deref<Target = Self::DynDb> + AsAsyncDatabase<Self::DynDb>

Sized version of DynDb, &’d Self::DynDb for synchronous queries

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§