pub trait QueryFragment<DB: Backend, SP = NotSpecialized> {
// Required method
fn walk_ast<'b>(&'b self, pass: AstPass<'_, 'b, DB>) -> QueryResult<()>;
}Expand description
An untyped fragment of SQL.
This may be a complete SQL command (such as an update statement without a
RETURNING clause), or a subsection (such as our internal types used to
represent a WHERE clause). Implementations of ExecuteDsl and
LoadQuery will generally require that this trait be implemented.
Required Methods§
Trait Implementations§
Source§impl<DB> QueryId for dyn QueryFragment<DB>
impl<DB> QueryId for dyn QueryFragment<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 moreDyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".