Struct sea_query_diesel::SeaQuery
source · pub struct SeaQuery<DB: Backend> { /* private fields */ }
Trait Implementations§
source§impl<DB> QueryFragment<DB, NotSpecialized> for SeaQuery<DB>where
DB: Backend,
impl<DB> QueryFragment<DB, NotSpecialized> for SeaQuery<DB>where DB: Backend,
source§fn walk_ast<'b>(&'b self, out: AstPass<'_, 'b, DB>) -> QueryResult<()>
fn walk_ast<'b>(&'b self, out: AstPass<'_, 'b, DB>) -> QueryResult<()>
Walk over this
QueryFragment
for all passes. Read moresource§fn to_sql(
&self,
out: &mut <DB as Backend>::QueryBuilder,
backend: &DB
) -> Result<(), Error>
fn to_sql( &self, out: &mut <DB as Backend>::QueryBuilder, backend: &DB ) -> Result<(), Error>
Converts this
QueryFragment
to its SQL representation. Read moresource§fn collect_binds<'b>(
&'b self,
out: &mut <DB as Backend>::BindCollector<'b>,
metadata_lookup: &mut <DB as TypeMetadata>::MetadataLookup,
backend: &'b DB
) -> Result<(), Error>
fn collect_binds<'b>( &'b self, out: &mut <DB as Backend>::BindCollector<'b>, metadata_lookup: &mut <DB as TypeMetadata>::MetadataLookup, backend: &'b DB ) -> Result<(), Error>
Serializes all bind parameters in this query. Read more
source§impl<DB: Backend> QueryId for SeaQuery<DB>
impl<DB: Backend> QueryId for SeaQuery<DB>
source§const HAS_STATIC_QUERY_ID: bool = false
const HAS_STATIC_QUERY_ID: bool = false
Can the SQL generated by
Self
be uniquely identified by its type? Read moresource§impl<Conn: Connection> RunQueryDsl<Conn> for SeaQuery<Conn::Backend>
impl<Conn: Connection> RunQueryDsl<Conn> for SeaQuery<Conn::Backend>
source§fn execute(self, conn: &mut Conn) -> Result<usize, Error>where
Conn: Connection,
Self: ExecuteDsl<Conn, <Conn as Connection>::Backend>,
fn execute(self, conn: &mut Conn) -> Result<usize, Error>where Conn: Connection, Self: ExecuteDsl<Conn, <Conn as Connection>::Backend>,
Executes the given command, returning the number of rows affected. Read more
source§fn load<'query, U>(self, conn: &mut Conn) -> Result<Vec<U, Global>, Error>where
Self: LoadQuery<'query, Conn, U, DefaultLoadingMode>,
fn load<'query, U>(self, conn: &mut Conn) -> Result<Vec<U, Global>, Error>where Self: LoadQuery<'query, Conn, U, DefaultLoadingMode>,
source§fn load_iter<'conn, 'query, U, B>(
self,
conn: &'conn mut Conn
) -> Result<Self::RowIter<'conn>, Error>where
'query: 'conn,
U: 'conn,
Self: LoadQuery<'query, Conn, U, B> + 'conn,
fn load_iter<'conn, 'query, U, B>( self, conn: &'conn mut Conn ) -> Result<Self::RowIter<'conn>, Error>where 'query: 'conn, U: 'conn, Self: LoadQuery<'query, Conn, U, B> + 'conn,
source§fn get_result<'query, U>(self, conn: &mut Conn) -> Result<U, Error>where
Self: LoadQuery<'query, Conn, U, DefaultLoadingMode>,
fn get_result<'query, U>(self, conn: &mut Conn) -> Result<U, Error>where Self: LoadQuery<'query, Conn, U, DefaultLoadingMode>,
Runs the command, and returns the affected row. Read more
Auto Trait Implementations§
impl<DB> !RefUnwindSafe for SeaQuery<DB>
impl<DB> Send for SeaQuery<DB>
impl<DB> !Sync for SeaQuery<DB>
impl<DB> Unpin for SeaQuery<DB>
impl<DB> !UnwindSafe for SeaQuery<DB>
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<Conn, DB, T> ExecuteDsl<Conn, DB> for Twhere
Conn: Connection<Backend = DB>,
DB: Backend,
T: QueryFragment<DB, NotSpecialized> + QueryId,
impl<Conn, DB, T> ExecuteDsl<Conn, DB> for Twhere Conn: Connection<Backend = DB>, DB: Backend, T: QueryFragment<DB, NotSpecialized> + QueryId,
source§impl<T> IntoSql for T
impl<T> IntoSql for T
source§fn into_sql<T>(self) -> Self::Expressionwhere
Self: AsExpression<T> + Sized,
T: SqlType + TypedExpressionType,
fn into_sql<T>(self) -> Self::Expressionwhere 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) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
T: SqlType + TypedExpressionType,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere &'a Self: AsExpression<T>, T: SqlType + TypedExpressionType,
Convert
&self
to an expression for Diesel’s query builder. Read more