Sha256: 3360d406b3be857aefef9446d0d0f60e9251535db5c26dc68944dd09633ec335

Contents?: true

Size: 437 Bytes

Versions: 2

Compression:

Stored size: 437 Bytes

Contents

module Trinidad
  module Extensions
    class MysqlDbpoolWebAppExtension < DbpoolWebAppExtension

      def driver_name
        defined?(Jdbc::MySQL.driver_name) ? Jdbc::MySQL.driver_name :
          'com.mysql.jdbc.Driver'
      end

      def protocol
        'jdbc:mysql://'
      end

      def load_driver
        require 'jdbc/mysql'
        Jdbc::MySQL.load_driver if defined?(Jdbc::MySQL.load_driver)
      end

    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
trinidad_mysql_dbpool_extension-0.7.0 lib/trinidad_mysql_dbpool_extension/mysql_webapp_extension.rb
trinidad_mysql_dbpool_extension-0.5.0 lib/trinidad_mysql_dbpool_extension/mysql_webapp_extension.rb