Class: Sequel::Database

Inherits:
Object
  • Object
show all
Includes:
SchemaSharding::Extensions::MigrationsExt
Defined in:
lib/sequel/schema-sharding/extensions/sequel_ext.rb,
lib/sequel/schema-sharding/extensions/migrations_ext.rb

Class Method Summary collapse

Methods included from SchemaSharding::Extensions::MigrationsExt

included, #migration_schema_for_table

Class Method Details

.adapter_class(scheme) ⇒ Object



6
7
8
9
10
11
12
13
14
15
# File 'lib/sequel/schema-sharding/extensions/sequel_ext.rb', line 6

def adapter_class(scheme)
  klass = sequel_adapter_class(scheme)

  begin
    require "sequel/schema-sharding/extensions/#{scheme}/dataset"
  rescue LoadError => e
  end

  klass
end

.sequel_adapter_classObject



4
# File 'lib/sequel/schema-sharding/extensions/sequel_ext.rb', line 4

alias_method :sequel_adapter_class, :adapter_class