edgedb.com
Introduction
Getting Started
Cheat Sheet
Data Model
EdgeQL
  • Overview
  • Expressions
  • Statements
    • SELECT
    • FOR
    • INSERT
    • UPDATE
    • DELETE
    • WITH block
    • START TRANSACTION
    • COMMIT
    • ROLLBACK
    • DECLARE SAVEPOINT
    • RELEASE SAVEPOINT
    • ROLLBACK TO SAVEPOINT
    • SET
    • RESET
    • DESCRIBE
  • Functions and Operators
  • Types Syntax
  • Schema Definition (SDL)
  • Data Definition (DDL)
  • Introspection
  • Administration
  • Lexical Structure
Clients
Administration
CLI
Changelog
Internals

ROLLBACK

ROLLBACK – abort the current transaction

ROLLBACK ;

Example

Abort the current transaction:

ROLLBACK;

Description

ROLLBACK rolls back the current transaction and causes all updates made by the transaction to be discarded.

See Also

START TRANSACTION, COMMIT, DECLARE SAVEPOINT, ROLLBACK TO SAVEPOINT, and RELEASE SAVEPOINT.