Module: PGTrunk

Defined in:
lib/pg_trunk.rb,
lib/pg_trunk/core.rb,
lib/pg_trunk/version.rb,
lib/pg_trunk/operations.rb,
lib/pg_trunk/core/railtie.rb,
lib/pg_trunk/core/registry.rb,
lib/pg_trunk/core/operation.rb,
lib/pg_trunk/core/validators.rb,
lib/pg_trunk/core/serializers.rb,
lib/pg_trunk/core/qualified_name.rb,
lib/pg_trunk/core/railtie/migrator.rb,
lib/pg_trunk/core/adapters/postgres.rb,
lib/pg_trunk/core/railtie/migration.rb,
lib/pg_trunk/core/railtie/statements.rb,
lib/pg_trunk/core/railtie/custom_types.rb,
lib/pg_trunk/core/dependencies_resolver.rb,
lib/pg_trunk/core/railtie/schema_dumper.rb,
lib/pg_trunk/core/railtie/command_recorder.rb,
lib/pg_trunk/core/railtie/schema_migration.rb

Overview

nodoc

Defined Under Namespace

Modules: Adapters, CommandRecorder, CustomTypes, Generators, Migration, Migrator, Operations, SchemaDumper, SchemaMigration, Serializers, Statements, Validators Classes: AllItemsValidValidator, DependenciesResolver, DifferenceValidator, Operation, QualifiedName, Railtie, Registry

Constant Summary collapse

VERSION =
"0.2.0"

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.databaseObject



19
20
21
# File 'lib/pg_trunk.rb', line 19

def self.database
  @database ||= Adapters::Postgres.new
end

.dumperObject



24
25
26
# File 'lib/pg_trunk.rb', line 24

def self.dumper
  @dumper ||= database.dumper
end

Instance Method Details

#databaseObject



18
19
20
# File 'lib/pg_trunk/core.rb', line 18

def database
  Adapters::Postgres.new
end