Module: DbSchema::Reader
- Defined in:
- lib/db_schema/reader.rb
Defined Under Namespace
Modules: Postgres
Class Method Summary collapse
Class Method Details
.adapter ⇒ Object
8 9 10 11 12 13 |
# File 'lib/db_schema/reader.rb', line 8 def adapter adapter_name = DbSchema.configuration.adapter registry.fetch(adapter_name) do |adapter_name| raise NotImplementedError, "DbSchema::Reader does not support #{adapter_name}." end end |
.read_schema ⇒ Object
4 5 6 |
# File 'lib/db_schema/reader.rb', line 4 def read_schema adapter.read_schema end |