pub struct With {
pub ctes: Vec<Cte>,
}Expand description
A WITH clause containing one or more common table expressions (CTEs).
CTEs are temporary named result sets defined at the beginning of a query,
referenced by TableRef::Cte in the query body.
§Examples
ⓘ
use toasty_core::stmt::{With, Cte, Query};
let with = With {
ctes: vec![Cte { query: Query::unit() }],
};
assert_eq!(with.ctes.len(), 1);Fields§
§ctes: Vec<Cte>The list of CTEs, referenced by index from TableRef::Cte.
Trait Implementations§
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