Sha256: 60fe71addc949d4e47811e9c4c5e3923335b51da52f4546a7e5e43e536274f89

Contents?: true

Size: 677 Bytes

Versions: 92

Compression:

Stored size: 677 Bytes

Contents

ArJdbc::ConnectionMethods.module_eval do
  def firebird_connection(config)
    config[:adapter_spec] ||= ::ArJdbc::Firebird

    return jndi_connection(config) if jndi_config?(config)

    begin
      require 'jdbc/firebird'
      ::Jdbc::Firebird.load_driver(:require)
    rescue LoadError # assuming driver.jar is on the class-path
    end

    config[:host] ||= 'localhost'
    config[:port] ||= 3050
    config[:url] ||= begin
      "jdbc:firebirdsql://#{config[:host]}:#{config[:port]}/#{config[:database]}"
    end
    config[:driver] ||= ::Jdbc::Firebird.driver_name

    jdbc_connection(config)
  end
  # alias_method :jdbcfirebird_connection, :firebird_connection
end

Version data entries

92 entries across 92 versions & 3 rubygems

Version Path
activerecord-jdbc-alt-adapter-61.3.0-java lib/arjdbc/firebird/connection_methods.rb
activerecord-jdbc-adapter-61.3-java lib/arjdbc/firebird/connection_methods.rb
activerecord-jdbc-alt-adapter-60.3.0-java lib/arjdbc/firebird/connection_methods.rb
activerecord-jdbc-alt-adapter-61.2.0-java lib/arjdbc/firebird/connection_methods.rb
activerecord-jdbc-adapter-70.0-java lib/arjdbc/firebird/connection_methods.rb
activerecord-jdbc-adapter-70.0.pre-java lib/arjdbc/firebird/connection_methods.rb
activerecord-jdbc-adapter-61.2-java lib/arjdbc/firebird/connection_methods.rb
activerecord-jdbc-alt-adapter-60.2.0-java lib/arjdbc/firebird/connection_methods.rb
activerecord-jdbc-alt-adapter-61.1.0-java lib/arjdbc/firebird/connection_methods.rb
activerecord-jdbc-adapter-61.1-java lib/arjdbc/firebird/connection_methods.rb
activerecord-jdbc-adapter-60.4-java lib/arjdbc/firebird/connection_methods.rb
activerecord-jdbc-adapter-52.8-java lib/arjdbc/firebird/connection_methods.rb
activerecord-jdbc-alt-adapter-61.0.0-java lib/arjdbc/firebird/connection_methods.rb
activerecord-jdbc-alt-adapter-60.1.0-java lib/arjdbc/firebird/connection_methods.rb
activerecord-jdbc-alt-adapter-52.6.0-java lib/arjdbc/firebird/connection_methods.rb
activerecord-jdbc-alt-adapter-51.7.0-java lib/arjdbc/firebird/connection_methods.rb
activerecord-jdbc-alt-adapter-50.7.0-java lib/arjdbc/firebird/connection_methods.rb
activerecord-jdbc-adapter-61.0-java lib/arjdbc/firebird/connection_methods.rb
activerecord-jdbc-adapter-60.3-java lib/arjdbc/firebird/connection_methods.rb
activerecord-jdbc-adapter-52.7-java lib/arjdbc/firebird/connection_methods.rb