Class Dister::DbAdapter
In: lib/dister/db_adapter.rb
Parent: Object

Wrapper class for the database adapter specified in the application‘s +database.yml+. Also handles database credentials, and dump/restore. Currently this only works with ActiveRecord.

Methods

Public Class methods

Initialize a new DbAdapter. May raise exceptions if the input is erronous.

@param [String] db_config_file path to the database configuration (.yml) @param [String] dump filename of dump

Public Instance methods

Checks if there is a db dump

@return [Boolean] true if there is a dump file, false otherwise

[Validate]