Module: SchemaPlusPgIndexes::Middleware::Postgresql::Dumper

Defined in:
lib/schema_plus_pg_indexes/middleware/postgresql/dumper.rb

Defined Under Namespace

Modules: Indexes, Table

Class Method Summary collapse

Class Method Details

.get_index_definitions(env, table_dump) ⇒ Object



40
41
42
43
# File 'lib/schema_plus_pg_indexes/middleware/postgresql/dumper.rb', line 40

def self.get_index_definitions(env, table_dump)
  env.dump.data.index_definitions ||= {}
  env.dump.data.index_definitions[table_dump.name] ||= env.connection.indexes(table_dump.name)
end