#[non_exhaustive]pub struct Folded {
pub columns: Vec<Scalar>,
}Expand description
One folded statement: the column values of the single result row. Typed, not pre-rendered — the CLI prints PG text forms while the probe runner follows sqllogictest’s conventions (booleans as 1/0), and neither should pay for the other’s rendering.
let f = kevy_sql::fold_select("SELECT lower('AB');", 0)?;
assert_eq!(f.columns, [kevy_sql::Scalar::Text("ab".into())]);Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.columns: Vec<Scalar>One value per SELECT column.
let f = kevy_sql::fold_select("SELECT 1 + 2, upper('a');", 0)?;
assert_eq!(f.columns, [kevy_sql::Scalar::Int(3), kevy_sql::Scalar::Text("A".into())]);Trait Implementations§
impl StructuralPartialEq for Folded
Auto Trait Implementations§
impl Freeze for Folded
impl RefUnwindSafe for Folded
impl Send for Folded
impl Sync for Folded
impl Unpin for Folded
impl UnsafeUnpin for Folded
impl UnwindSafe for Folded
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