require 'legion/data/connections/mysql_base' module Legion module Data module Connections class MySQL < 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 def adapter 'mysql2' end def connect super(adapter, creds_builder) end end end end end