into_query/
lib.rs

1/// Provides the `into_query` function, which converts the type into a select statement filtering by present fields.
2/// T is the table the select statement will filter by.
3pub trait IntoQuery<T, DB>
4where
5    T: diesel::Table + diesel::query_builder::AsQuery,
6    T::Query: diesel::query_dsl::methods::BoxedDsl<'static, DB>,
7    DB: diesel::backend::Backend,
8{
9    /// Convert `self` into a query
10    fn into_query(self) -> diesel::helper_types::IntoBoxed<'static, T, DB>;
11}
12
13#[cfg(any(feature = "mysql", feature = "postgres", feature = "sqlite"))]
14pub use into_query_derive::*;