Commit an existing prepared transaction with the given transaction identifier string.
# File lib/sequel/adapters/jdbc/h2.rb, line 22 def commit_prepared_transaction(transaction_id, opts=OPTS) run("COMMIT TRANSACTION #{transaction_id}", opts) end
H2 uses the :h2 database type.
# File lib/sequel/adapters/jdbc/h2.rb, line 27 def database_type :h2 end
Rollback an existing prepared transaction with the given transaction identifier string.
# File lib/sequel/adapters/jdbc/h2.rb, line 33 def rollback_prepared_transaction(transaction_id, opts=OPTS) run("ROLLBACK TRANSACTION #{transaction_id}", opts) end
H2 uses an IDENTITY type
# File lib/sequel/adapters/jdbc/h2.rb, line 38 def serial_primary_key_options {:primary_key => true, :type => :identity, :identity=>true} end
H2 supports CREATE TABLE IF NOT EXISTS syntax.
# File lib/sequel/adapters/jdbc/h2.rb, line 43 def supports_create_table_if_not_exists? true end
H2 supports prepared transactions
# File lib/sequel/adapters/jdbc/h2.rb, line 48 def supports_prepared_transactions? true end
H2 supports savepoints
# File lib/sequel/adapters/jdbc/h2.rb, line 53 def supports_savepoints? true end
Generated with the Darkfish Rdoc Generator 2.