Sha256: aae01e521549c2b755a4c22abec1eb34abd74d56b43bb19ad35c3a41cb355b83

Contents?: true

Size: 462 Bytes

Versions: 2

Compression:

Stored size: 462 Bytes

Contents

module Trinidad
  module Extensions
    class PostgresqlDbpoolWebAppExtension < DbpoolWebAppExtension

      def driver_name
        defined?(Jdbc::Postgres.driver_name) ? Jdbc::Postgres.driver_name :
          'org.postgresql.Driver'
      end

      def protocol
        'jdbc:postgresql://'
      end

      def load_driver
        require 'jdbc/postgres'
        Jdbc::Postgres.load_driver if defined?(Jdbc::Postgres.load_driver)
      end

    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
trinidad_postgresql_dbpool_extension-0.7.0 lib/trinidad_postgresql_dbpool_extension/postgresql_webapp_extension.rb
trinidad_postgresql_dbpool_extension-0.5.0 lib/trinidad_postgresql_dbpool_extension/postgresql_webapp_extension.rb