Sha256: d79068463044da58422a753a6df603d4b2b1b32170137cfa8fc931a42461c2b7

Contents?: true

Size: 730 Bytes

Versions: 7

Compression:

Stored size: 730 Bytes

Contents

# frozen_string_literal: true

require 'active_record/connection_adapters/abstract_adapter'

module Ridgepole
  module Ext
    module AbstractAdapter
      module Partitioning
        def partition(*)
          nil
        end

        def partition_tables
          []
        end

        # SchemaStatements
        def create_partition(*)
          raise NotImplementedError
        end

        def add_partition(*)
          raise NotImplementedError
        end

        def remove_partition(*)
          raise NotImplementedError
        end
      end
    end
  end
end

module ActiveRecord
  module ConnectionAdapters
    class AbstractAdapter
      prepend Ridgepole::Ext::AbstractAdapter::Partitioning
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ridgepole-1.0.7 lib/ridgepole/ext/abstract_adapter/partitioning.rb
ridgepole-1.0.6 lib/ridgepole/ext/abstract_adapter/partitioning.rb
ridgepole-1.0.5 lib/ridgepole/ext/abstract_adapter/partitioning.rb
ridgepole-1.0.4 lib/ridgepole/ext/abstract_adapter/partitioning.rb
ridgepole-1.0.3 lib/ridgepole/ext/abstract_adapter/partitioning.rb
ridgepole-1.0.2 lib/ridgepole/ext/abstract_adapter/partitioning.rb
ridgepole-1.0.2.beta lib/ridgepole/ext/abstract_adapter/partitioning.rb