pub struct InsertRowContext { /* private fields */ }Expand description
Precomputed per-statement column context, so Parser::visit_events
consumers can parse individual INSERT tuples (delivered as
crate::parser::ParserEvent::InsertRow) without re-deriving the column
order for every row. Built once per INSERT header.
Implementations§
Source§impl InsertRowContext
impl InsertRowContext
Sourcepub fn from_header(
header: &[u8],
schema: &TableSchema,
dialect: SqlDialect,
) -> Self
pub fn from_header( header: &[u8], schema: &TableSchema, dialect: SqlDialect, ) -> Self
Build the context from an INSERT header (the statement bytes up to and
including the VALUES keyword) and the table schema, exactly as the
full-statement parser would.
Auto Trait Implementations§
impl Freeze for InsertRowContext
impl RefUnwindSafe for InsertRowContext
impl Send for InsertRowContext
impl Sync for InsertRowContext
impl Unpin for InsertRowContext
impl UnsafeUnpin for InsertRowContext
impl UnwindSafe for InsertRowContext
Blanket Implementations§
impl<T> Allocation for T
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more