Sha256: 1b87a1a74c0e09a36d42a3be8552a435ae1f8d8b8aa449db092caffdb23d898a

Contents?: true

Size: 842 Bytes

Versions: 12

Compression:

Stored size: 842 Bytes

Contents

require 'data_objects'
if RUBY_PLATFORM =~ /java/
  require 'do_jdbc'
  require 'java'

  driver = 'org.postgresql.Driver'
  begin
    java.lang.Thread.currentThread.getContextClassLoader().loadClass(driver, true)
  rescue
    require 'jdbc/postgres' # the JDBC driver, packaged as a gem
  end

  # Another way of loading the JDBC Class. This seems to be more reliable
  # than Class.forName() within the data_objects.Connection Java class,
  # which is currently not working as expected.
  java_import driver

end

begin
  require 'do_postgres/do_postgres'
rescue LoadError
  if RUBY_PLATFORM =~ /mingw|mswin/ then
    RUBY_VERSION =~ /(\d+.\d+)/
    require "do_postgres/#{$1}/do_postgres"
  else
    raise
  end
end

require 'do_postgres/version'
require 'do_postgres/transaction' if RUBY_PLATFORM !~ /java/
require 'do_postgres/encoding'

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
do_postgres-0.10.3 lib/do_postgres.rb
do_postgres-0.10.3-x86-mswin32-60 lib/do_postgres.rb
do_postgres-0.10.3-x86-mingw32 lib/do_postgres.rb
do_postgres-0.10.3-java lib/do_postgres.rb
do_postgres-0.10.2 lib/do_postgres.rb
do_postgres-0.10.2-x86-mswin32-60 lib/do_postgres.rb
do_postgres-0.10.2-x86-mingw32 lib/do_postgres.rb
do_postgres-0.10.2-java lib/do_postgres.rb
do_postgres-0.10.1 lib/do_postgres.rb
do_postgres-0.10.1-x86-mswin32-60 lib/do_postgres.rb
do_postgres-0.10.1-x86-mingw32 lib/do_postgres.rb
do_postgres-0.10.1-java lib/do_postgres.rb