lib/legion/data/connections/mysql2.rb in legion-data-0.1.1 vs lib/legion/data/connections/mysql2.rb in legion-data-0.2.0

- old
+ new

@@ -1,25 +1,10 @@ -require 'legion/data/connections/mysql_base' - module Legion module Data module Connections - class MySQL2 < Legion::Data::Connections::MySQLBase - attr_accessor :connection - def initialize(_options = {}) - Legion::Logging.debug('Connecting to MySQL with MySQL2 Connector') - @connection = connect - - Legion::Logging.info("Legion is connected to database #{Legion::Settings[:data][:mysql][:database]}") - Legion::Settings[:data][:connected] = true - end - + module MySQL2 def adapter - 'mysql2' - end - - def connect - super(adapter, creds_builder) + :mysql2 end end end end end