Class: Sequel::Rails::Storage::Mysql
- Inherits:
-
Sequel::Rails::Storage
- Object
- Sequel::Rails::Storage
- Sequel::Rails::Storage::Mysql
- Defined in:
- lib/sequel/rails/storage.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Sequel::Rails::Storage
Instance Method Summary collapse
Methods inherited from Sequel::Rails::Storage
#charset, #create, create_all, create_environment, #database, #drop, drop_all, drop_environment, #host, #initialize, new, #owner, #password, #port, #username
Constructor Details
This class inherits a constructor from Sequel::Rails::Storage
Instance Method Details
#_create ⇒ Object
134 135 136 |
# File 'lib/sequel/rails/storage.rb', line 134 def _create execute("CREATE DATABASE IF NOT EXISTS `#{database}` DEFAULT CHARACTER SET #{charset} DEFAULT COLLATE #{collation}") end |
#_drop ⇒ Object
138 139 140 |
# File 'lib/sequel/rails/storage.rb', line 138 def _drop execute("DROP DATABASE IF EXISTS `#{database}`") end |