pub struct CommitExecutor;Expand description
Executor for COMMIT statements
Implementations§
Source§impl CommitExecutor
impl CommitExecutor
Sourcepub fn execute(
_stmt: &CommitStmt,
db: &mut Database,
) -> Result<String, ExecutorError>
pub fn execute( _stmt: &CommitStmt, db: &mut Database, ) -> Result<String, ExecutorError>
Execute a COMMIT statement.
Phase C2 of #5085: drains the transaction’s deferred FK violation queue and re-checks each entry against the current parent state. If any deferred violation still holds, the COMMIT fails and the transaction is rolled back, matching SQLite semantics (“FOREIGN KEY constraint failed” raised at COMMIT).
Auto Trait Implementations§
impl Freeze for CommitExecutor
impl RefUnwindSafe for CommitExecutor
impl Send for CommitExecutor
impl Sync for CommitExecutor
impl Unpin for CommitExecutor
impl UnsafeUnpin for CommitExecutor
impl UnwindSafe for CommitExecutor
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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