Sha256: 426914c48d895ce2365ee161e35078ddcaec653d3db9c07e31292fcef8c3b13c

Contents?: true

Size: 718 Bytes

Versions: 4

Compression:

Stored size: 718 Bytes

Contents

# frozen_string_literal: true

require "clowne/ext/orm_ext"

module Clowne
  module Adapters
    # Cloning adapter for Sequel
    class Sequel < Base
      class << self
        def dup_record(record)
          Clowne::Adapters::Sequel::Copier.call(record)
        end

        def operation_class
          Clowne::Adapters::Sequel::Operation
        end
      end
    end
  end
end

::Sequel::Model.extend Clowne::Ext::ORMExt

require "clowne/adapters/sequel/operation"
require "clowne/adapters/sequel/associations"
require "clowne/adapters/sequel/copier"
require "clowne/adapters/sequel/record_wrapper"
require "clowne/adapters/sequel/resolvers/association"
require "clowne/adapters/sequel/resolvers/after_persist"

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
clowne-1.5.0 lib/clowne/adapters/sequel.rb
clowne-1.4.0 lib/clowne/adapters/sequel.rb
clowne-1.3.0 lib/clowne/adapters/sequel.rb
clowne-1.2.0 lib/clowne/adapters/sequel.rb