Sha256: fad0fa3263e8e4c3bf8040b850db54854684d28ed77932ac9ce75f64f2c7f0a6

Contents?: true

Size: 1017 Bytes

Versions: 13

Compression:

Stored size: 1017 Bytes

Contents

# frozen-string-literal: true

Sequel::JDBC.load_driver('com.progress.sql.jdbc.JdbcProgressDriver')
Sequel.require 'adapters/shared/progress'
Sequel.require 'adapters/jdbc/transactions'

module Sequel
  module JDBC
    Sequel.synchronize do
      DATABASE_SETUP[:jdbcprogress] = proc do |db|
        db.extend(Sequel::JDBC::Progress::DatabaseMethods)
        db.extend_datasets Sequel::Progress::DatasetMethods
        com.progress.sql.jdbc.JdbcProgressDriver
      end
    end

    # Database and Dataset instance methods for Progress v9 specific
    # support via JDBC.
    module Progress
      # Database instance methods for Progress databases accessed via JDBC.
      module DatabaseMethods
        extend Sequel::Database::ResetIdentifierMangling
        include Sequel::Progress::DatabaseMethods
        include Sequel::JDBC::Transactions

        # Progress DatabaseMetaData doesn't even implement supportsSavepoints()
        def supports_savepoints?
          false
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
sequel-4.41.0 lib/sequel/adapters/jdbc/jdbcprogress.rb
sequel-4.40.0 lib/sequel/adapters/jdbc/jdbcprogress.rb
sequel-4.39.0 lib/sequel/adapters/jdbc/jdbcprogress.rb
tdiary-5.0.2 vendor/bundle/gems/sequel-4.37.0/lib/sequel/adapters/jdbc/jdbcprogress.rb
sequel-4.38.0 lib/sequel/adapters/jdbc/jdbcprogress.rb
sequel-4.37.0 lib/sequel/adapters/jdbc/jdbcprogress.rb
sequel-4.36.0 lib/sequel/adapters/jdbc/jdbcprogress.rb
tdiary-5.0.1 vendor/bundle/gems/sequel-4.35.0/lib/sequel/adapters/jdbc/jdbcprogress.rb
sequel-4.35.0 lib/sequel/adapters/jdbc/jdbcprogress.rb
sequel-4.34.0 lib/sequel/adapters/jdbc/jdbcprogress.rb
sequel-4.33.0 lib/sequel/adapters/jdbc/jdbcprogress.rb
sequel-4.32.0 lib/sequel/adapters/jdbc/jdbcprogress.rb
sequel-4.31.0 lib/sequel/adapters/jdbc/jdbcprogress.rb