Module | Sequel::JDBC::H2::DatabaseMethods |
In: |
lib/sequel/adapters/jdbc/h2.rb
|
PRIMARY_KEY_INDEX_RE | = | /\Aprimary_key/i.freeze |
DATABASE_ERROR_REGEXPS | = | { /Unique index or primary key violation/ => UniqueConstraintViolation, /Referential integrity constraint violation/ => ForeignKeyConstraintViolation, /Check constraint violation/ => CheckConstraintViolation, /NULL not allowed for column/ => NotNullConstraintViolation, /Deadlock detected\. The current transaction was rolled back\./ => SerializationFailure, }.freeze |
Commit an existing prepared transaction with the given transaction identifier string.
# File lib/sequel/adapters/jdbc/h2.rb, line 24 24: def commit_prepared_transaction(transaction_id, opts=OPTS) 25: run("COMMIT TRANSACTION #{transaction_id}", opts) 26: end
Rollback an existing prepared transaction with the given transaction identifier string.
# File lib/sequel/adapters/jdbc/h2.rb, line 35 35: def rollback_prepared_transaction(transaction_id, opts=OPTS) 36: run("ROLLBACK TRANSACTION #{transaction_id}", opts) 37: end