pub struct Untyped;
Expand description
Query nodes with this expression type do not have a statically at compile time known expression type.
An example for such a query node in diesel itself, is sql_query
as
we do not know which fields are returned from such a query at compile time.
For loading values from queries returning a type of this expression, consider
using #[derive(QueryableByName)]
on the corresponding result type.
Trait Implementations§
source§impl<U, DB> CompatibleType<U, DB> for Untypedwhere
U: FromSqlRow<Untyped, DB>,
DB: Backend,
impl<U, DB> CompatibleType<U, DB> for Untypedwhere U: FromSqlRow<Untyped, DB>, DB: Backend,
source§impl<DB, T> FromSqlRow<Untyped, DB> for Twhere
DB: Backend,
T: QueryableByName<DB>,
impl<DB, T> FromSqlRow<Untyped, DB> for Twhere DB: Backend, T: QueryableByName<DB>,
source§fn build_from_row<'a>(row: &impl Row<'a, DB>) -> Result<Self>
fn build_from_row<'a>(row: &impl Row<'a, DB>) -> Result<Self>
See the trait documentation.
impl Copy for Untyped
impl TypedExpressionType for Untyped
Auto Trait Implementations§
impl RefUnwindSafe for Untyped
impl Send for Untyped
impl Sync for Untyped
impl Unpin for Untyped
impl UnwindSafe for Untyped
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
source§impl<T> IntoSql for T
impl<T> IntoSql for T
source§fn into_sql<T>(self) -> AsExprOf<Self, T>where
Self: AsExpression<T> + Sized,
T: SqlType + TypedExpressionType,
fn into_sql<T>(self) -> AsExprOf<Self, T>where Self: AsExpression<T> + Sized, T: SqlType + TypedExpressionType,
Convert
self
to an expression for Diesel’s query builder. Read moresource§fn as_sql<'a, T>(&'a self) -> AsExprOf<&'a Self, T>where
&'a Self: AsExpression<T>,
T: SqlType + TypedExpressionType,
fn as_sql<'a, T>(&'a self) -> AsExprOf<&'a Self, T>where &'a Self: AsExpression<T>, T: SqlType + TypedExpressionType,
Convert
&self
to an expression for Diesel’s query builder. Read moresource§impl<DB> QueryMetadata<Untyped> for DBwhere
DB: Backend,
impl<DB> QueryMetadata<Untyped> for DBwhere DB: Backend,
source§fn row_metadata(
_: &mut <DB as TypeMetadata>::MetadataLookup,
row: &mut Vec<Option<<DB as TypeMetadata>::TypeMetadata>, Global>
)
fn row_metadata( _: &mut <DB as TypeMetadata>::MetadataLookup, row: &mut Vec<Option<<DB as TypeMetadata>::TypeMetadata>, Global> )
The exact return value of this function is considerded to be a
backend specific implementation detail. You should not rely on those
values if you not own the corresponding backend