pub struct SqlBuilder<'a> { /* private fields */ }
Expand description

The Sql builder to build normal queries and count queries.

Implementations

Create a new SQL Builder from a root mapper and the table mapper registry

Use these roles with the builder.

Use these auxiliary parameters with the builder.

Add this raw SQL join statement to the result. (For internal merge joins)

Build a delete statement from the Query. This build a delete filter predicate from the field filters and predicates in the query. Any field selections are ignored.

Returns a BuildResult that can be turned into SQL.

Build a normal select statement from the Query.

Returns a BuildResult that can be turned into SQL.

Build a count statement from the Query. This build a count filter predicate from the field filters and predicates. If count_selection_ony is true then only filters are used that are part of the count selection ($cnt) or predicates that are marked as count_filters.

Returns a BuildResult that can be turned into SQL.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more