Sha256: d3cc0376ff81014fd882239a98756e251fa60f63483864e629498163e8a770a6

Contents?: true

Size: 1.06 KB

Versions: 19

Compression:

Stored size: 1.06 KB

Contents

Sequel::JDBC.load_driver('org.firebirdsql.jdbc.FBDriver')
Sequel.require 'adapters/shared/firebird'
Sequel.require 'adapters/jdbc/transactions'

module Sequel
  module JDBC
    Sequel.synchronize do
      DATABASE_SETUP[:firebirdsql] = proc do |db|
        db.extend(Sequel::JDBC::Firebird::DatabaseMethods)
        db.extend_datasets Sequel::Firebird::DatasetMethods
        org.firebirdsql.jdbc.FBDriver
      end
    end

    # Database and Dataset instance methods for Firebird specific
    # support via JDBC.
    module Firebird
      # Database instance methods for Firebird databases accessed via JDBC.
      module DatabaseMethods
        extend Sequel::Database::ResetIdentifierMangling
        include Sequel::Firebird::DatabaseMethods
        include Sequel::JDBC::Transactions
        
        # Add the primary_keys and primary_key_sequences instance variables,
        # so we can get the correct return values for inserted rows.
        def self.extended(db)
          db.instance_eval do
            @primary_keys = {}
          end
        end
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 2 rubygems

Version Path
sequel-4.30.0 lib/sequel/adapters/jdbc/firebirdsql.rb
sequel-4.29.0 lib/sequel/adapters/jdbc/firebirdsql.rb
sequel-4.28.0 lib/sequel/adapters/jdbc/firebirdsql.rb
sequel-4.27.0 lib/sequel/adapters/jdbc/firebirdsql.rb
sequel-4.26.0 lib/sequel/adapters/jdbc/firebirdsql.rb
sequel-4.25.0 lib/sequel/adapters/jdbc/firebirdsql.rb
sequel-4.24.0 lib/sequel/adapters/jdbc/firebirdsql.rb
sequel-4.23.0 lib/sequel/adapters/jdbc/firebirdsql.rb
sequel-4.22.0 lib/sequel/adapters/jdbc/firebirdsql.rb
sequel-4.21.0 lib/sequel/adapters/jdbc/firebirdsql.rb
sequel-4.20.0 lib/sequel/adapters/jdbc/firebirdsql.rb
sequel-4.19.0 lib/sequel/adapters/jdbc/firebirdsql.rb
sequel-4.18.0 lib/sequel/adapters/jdbc/firebirdsql.rb
sequel-4.17.0 lib/sequel/adapters/jdbc/firebirdsql.rb
sequel-4.16.0 lib/sequel/adapters/jdbc/firebirdsql.rb
asana2flowdock-1.0.0 vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/adapters/jdbc/firebirdsql.rb
sequel-4.15.0 lib/sequel/adapters/jdbc/firebirdsql.rb
sequel-4.14.0 lib/sequel/adapters/jdbc/firebirdsql.rb
sequel-4.13.0 lib/sequel/adapters/jdbc/firebirdsql.rb