logo
pub struct Search { /* private fields */ }
Expand description

For recursive WithQuery WithClauses the traversing order can be specified in some databases that support this functionality.

The clause contains the type of traversal: SearchOrder and the expression that is used to construct the current path.

A query can have both SEARCH and CYCLE clauses.

Setting Self::order and Self::expr is mandatory. The SelectExpr used must specify an alias which will be the name that you can use to order the result of the CommonTableExpression.

Implementations

Create a complete Search specification from the SearchOrder and a SelectExpr. The given SelectExpr must have an alias specified.

Constructs a new empty Search.

The traversal order to be used.

The given SelectExpr must have an alias specified.

The actual expression will be the one used to track the path in the graph.

The alias of the given SelectExpr will be the name of the order column generated by this clause.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

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.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

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