Sha256: f8ea68c111d5746d28f7c60e7c11893f6bf80643cf8ad10ea754a253040b07af

Contents?: true

Size: 594 Bytes

Versions: 1

Compression:

Stored size: 594 Bytes

Contents

require "sequel"
require "rom"

module ROM
  module SQL
    ConstraintError = Class.new(ROM::CommandError)

    class DatabaseError < ROM::CommandError
      attr_reader :original_exception

      def initialize(error, message)
        super(message)
        @original_exception = error
      end
    end
  end
end

require "rom/sql/version"
require "rom/sql/relation"
require "rom/sql/repository"
require "rom/sql/migration"

if defined?(Rails)
  require "rom/sql/support/active_support_notifications"
  require 'rom/sql/support/rails_log_subscriber'
end

ROM.register_adapter(:sql, ROM::SQL)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rom-sql-0.4.1 lib/rom/sql.rb