Class: Ronin::DB::CLI::DatabaseCommand Private
- Includes:
- URIMethods
- Defined in:
- lib/ronin/db/cli/database_command.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.
Base class for all commands that access the database.
Direct Known Subclasses
Constant Summary
Constants included from URIMethods
Instance Method Summary collapse
-
#config ⇒ Hash{Symbol => String,Integer}
private
The database connection configuration.
-
#connect ⇒ Object
private
Connects to the database.
Methods included from URIMethods
#normalize_adapter, #normalize_sqlite3_path, #parse_uri
Instance Method Details
#config ⇒ Hash{Symbol => String,Integer}
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.
The database connection configuration.
53 54 55 56 57 58 59 |
# File 'lib/ronin/db/cli/database_command.rb', line 53 def config if [:db_uri] parse_uri([:db_uri]) else DB.config[[:db]] end end |