Class DeepTest::Database::MysqlSetupListener
In: lib/deep_test/database/mysql_setup_listener.rb
Parent: SetupListener

SetupListener implementation for MySQL.

Methods

Attributes

admin_configuration  [RW]  ActiveRecord configuration to use when connecting to MySQL to create databases, drop database, and grant privileges. By default, connects to information_schema on localhost as root with no password.

Public Instance methods

Creates database and grants privileges (via grant_privileges) on it via ActiveRecord connection based on admin_configuration.

Drops database via ActiveRecord connection based on admin_configuration

Location to store dumpfile. The default assumes you are testing a Rails project. You should override this if you are not using Rails or would like the dump file to be something other than the default

Dumps schema from master database using mysqldump command

Grants ‘all’ privilege on worker database to username and password specified by worker database config. If your application has special database privilege needs beyond ‘all’, you should override this method and grant them.

Loads dumpfile into worker database using mysql command

[Validate]