Class: Hanami::Model::Migrator::PostgresAdapter Private
- Defined in:
- lib/hanami/model/migrator/postgres_adapter.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
PostgreSQL adapter
Constant Summary collapse
- HOST =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
"PGHOST"
- PORT =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
"PGPORT"
- USER =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
"PGUSER"
- PASSWORD =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
"PGPASSWORD"
- DB_CREATION_ERROR =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
"createdb: database creation failed. If the database exists, " \ "then its console may be open. See this issue for more details: " \ "https://github.com/hanami/model/issues/250"
Constants inherited from Adapter
Adapter::MIGRATIONS_TABLE, Adapter::MIGRATIONS_TABLE_VERSION_COLUMN
Instance Method Summary collapse
- #create ⇒ Object private
- #drop ⇒ Object private
- #dump ⇒ Object private
- #load ⇒ Object private
Methods inherited from Adapter
for, #initialize, #migrate, #rollback, #version
Constructor Details
This class inherits a constructor from Hanami::Model::Migrator::Adapter
Instance Method Details
#create ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
37 38 39 |
# File 'lib/hanami/model/migrator/postgres_adapter.rb', line 37 def create call_db_command("createdb") end |
#drop ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
43 44 45 |
# File 'lib/hanami/model/migrator/postgres_adapter.rb', line 43 def drop call_db_command("dropdb") end |
#dump ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
49 50 51 52 |
# File 'lib/hanami/model/migrator/postgres_adapter.rb', line 49 def dump dump_structure dump_migrations_data end |
#load ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
56 57 58 |
# File 'lib/hanami/model/migrator/postgres_adapter.rb', line 56 def load load_structure end |