Sha256: 88801917d77f1be97ffa0fb9224df0e51a0b8baa16629bf84dc05410fa4c667c

Contents?: true

Size: 443 Bytes

Versions: 2

Compression:

Stored size: 443 Bytes

Contents

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

2 entries across 2 versions & 1 rubygems

Version Path
trinidad_sqlite_dbpool_extension-0.7.0 lib/trinidad_sqlite_dbpool_extension/sqlite_webapp_extension.rb
trinidad_sqlite_dbpool_extension-0.5.0 lib/trinidad_sqlite_dbpool_extension/sqlite_webapp_extension.rb