Sha256: 1c367e9194038764891f5c750b347946fd36617949b41665a02d454d7746d168
Contents?: true
Size: 667 Bytes
Versions: 2
Compression:
Stored size: 667 Bytes
Contents
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 def adapter 'mysql2' end def connect super(adapter, creds_builder) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
legion-data-0.1.1 | lib/legion/data/connections/mysql2.rb |
legion-data-0.1.0 | lib/legion/data/connections/mysql2.rb |