pub struct Unnest {
pub params: Vec<UnnestParam>,
pub alias: TableName,
}Expand description
An UNNEST clause for bulk operations.
Generates SQL like: UNNEST($1::text[], $2::bigint[]) AS t(col1, col2)
Fields§
§params: Vec<UnnestParam>Parameters with their PostgreSQL array types.
alias: TableNameAlias for the UNNEST result (e.g., “t”).
Implementations§
Source§impl Unnest
impl Unnest
pub fn new(alias: TableName) -> Self
pub fn param(self, name: ColumnName, pg_type: PgType) -> Self
pub fn params(self, params: impl IntoIterator<Item = UnnestParam>) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Unnest
impl RefUnwindSafe for Unnest
impl Send for Unnest
impl Sync for Unnest
impl Unpin for Unnest
impl UnsafeUnpin for Unnest
impl UnwindSafe for Unnest
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