Sha256: 46b32cd7c1cb01b358f60acdde9759538f9085a245c10d1444f2957db489429c

Contents?: true

Size: 510 Bytes

Versions: 7

Compression:

Stored size: 510 Bytes

Contents

print "Using native Postgresql\n"

require 'active_record'
require File.join(PROJECT_ROOT, 'test', 'connections', 'connection_spec')
require File.join(PROJECT_ROOT, 'lib', 'composite_primary_keys', 'connection_adapters', 'postgresql_adapter')

def connection_string
  options = Hash.new
  options['U'] = SPEC['username']  if SPEC['username']
  options.map { |key, value| "-#{key} #{value}" }.join(" ")
end

SPEC = CompositePrimaryKeys::ConnectionSpec[:postgresql]
ActiveRecord::Base.establish_connection(SPEC)

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
composite_primary_keys-3.1.8 test/connections/native_postgresql/connection.rb
composite_primary_keys-3.1.7 test/connections/native_postgresql/connection.rb
composite_primary_keys-3.1.6 test/connections/native_postgresql/connection.rb
composite_primary_keys-3.1.5 test/connections/native_postgresql/connection.rb
composite_primary_keys-3.1.4 test/connections/native_postgresql/connection.rb
composite_primary_keys-3.1.2 test/connections/native_postgresql/connection.rb
composite_primary_keys-3.1.1 test/connections/native_postgresql/connection.rb