Module: RDBr::Catalog
- Defined in:
- lib/rdbr/catalog.rb,
lib/rdbr/catalog/mysql.rb,
lib/rdbr/catalog/errors.rb,
lib/rdbr/catalog/reader.rb,
lib/rdbr/catalog/sqlite.rb,
lib/rdbr/catalog/connection.rb,
lib/rdbr/catalog/postgresql.rb,
lib/rdbr/catalog/serializer.rb,
lib/rdbr/catalog/mysql/queries.rb,
lib/rdbr/catalog/postgresql/queries.rb
Defined Under Namespace
Modules: Serializer Classes: Connection, ConnectionError, Error, Mysql, MysqlQueries, Postgresql, PostgresqlQueries, Reader, Sqlite, UnsupportedAdapterError
Class Method Summary collapse
Class Method Details
.read(database_url:, include_system: false) ⇒ Object
13 14 15 16 17 18 |
# File 'lib/rdbr/catalog.rb', line 13 def read(database_url:, include_system: false) connection = Connection.new(database_url) Reader.for(connection.adapter_name).new(connection, include_system: include_system).read ensure connection&.disconnect end |