Sha256: b0fcef7200c5190d39a62f81768b08ea5ff5789985f1d53a46bd5739ca54c4ba
Contents?: true
Size: 693 Bytes
Versions: 1
Compression:
Stored size: 693 Bytes
Contents
module Sequel module ActiveRecordConnection module Postgres def execute(sql, opts=OPTS) result = activerecord_connection.execute(sql) if block_given? yield result else result.cmd_tuples end rescue ActiveRecord::StatementInvalid => exception raise_error(exception.cause, classes: database_error_classes) ensure result.clear if result end def transaction(options = {}) %i[deferrable read_only synchronous].each do |key| fail Error, "#{key.inspect} transaction option is currently not supported" if options.key?(key) end super end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sequel-activerecord_connection-0.2.6 | lib/sequel/extensions/activerecord_connection/postgres.rb |