pub trait StatementBuilder {
// Required methods
fn build(&self, db_backend: &DbBackend) -> Statement;
fn audit(&self) -> Result<QueryAccessAudit, AuditError>;
}Expand description
Anything that can be rendered to a backend-specific Statement.
Implemented by the sea_query statement types (SelectStatement,
InsertStatement, etc.) so they can be passed to
ConnectionTrait::execute /
query_all directly.
Required Methodsยง
Sourcefn build(&self, db_backend: &DbBackend) -> Statement
fn build(&self, db_backend: &DbBackend) -> Statement
Render self into a Statement for db_backend.
Sourcefn audit(&self) -> Result<QueryAccessAudit, AuditError>
Available on crate feature rbac only.
fn audit(&self) -> Result<QueryAccessAudit, AuditError>
rbac only.Inspect the statement and produce the access request that
RbacEngine needs to authorise it.
Dyn Compatibilityยง
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".