Sha256: 49497d465b8ac56b78decbca58c7cd89953b85689daf1e12529ca7038e07baee

Contents?: true

Size: 487 Bytes

Versions: 1

Compression:

Stored size: 487 Bytes

Contents

require 'trinidad_dbpool/webapp_extension'

module Trinidad
  module Extensions
    class SqliteDbpoolWebAppExtension < DbpoolWebAppExtension

      def driver_name
        defined?(Jdbc::SQLite3.driver_name) ? Jdbc::SQLite3.driver_name :
          'org.sqlite.JDBC'
      end

      def protocol
        'jdbc:sqlite://'
      end

      def load_driver
        require 'jdbc/sqlite3'
        Jdbc::SQLite3.load_driver if defined?(Jdbc::SQLite3.load_driver)
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
trinidad_sqlite_dbpool_extension-0.8.0 lib/trinidad_sqlite_dbpool_extension/sqlite_webapp_extension.rb