pub struct With {
pub ctes: Vec<Cte>,
pub recursive: bool,
pub leading_comments: Vec<String>,
pub search: Option<Box<Expression>>,
}Expand description
Represent a WITH clause containing one or more Common Table Expressions (CTEs).
When recursive is true, the clause is WITH RECURSIVE, enabling CTEs
that reference themselves. Each CTE is defined in the ctes vector and
can be referenced by name in subsequent CTEs and in the main query body.
Fields§
§ctes: Vec<Cte>The list of CTE definitions, in order.
recursive: boolWhether the WITH RECURSIVE keyword was used.
leading_comments: Vec<String>Leading comments before the statement
search: Option<Box<Expression>>SEARCH/CYCLE clause for recursive CTEs (PostgreSQL)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for With
impl<'de> Deserialize<'de> for With
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for With
Auto Trait Implementations§
impl Freeze for With
impl RefUnwindSafe for With
impl Send for With
impl Sync for With
impl Unpin for With
impl UnwindSafe for With
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