Sha256: 06526bb748c0ae705e220b5d5cb1db677f60ad6b7bfd4f85e5f79fe36b47fedb

Contents?: true

Size: 448 Bytes

Versions: 14

Compression:

Stored size: 448 Bytes

Contents

print "Using native MySQL\n"

def connection_string
  options = {}
  options['u'] = SPEC['username']  if SPEC['username']
  options['p'] = SPEC['password']  if SPEC['password']
  options['S'] = SPEC['sock']      if SPEC['sock']
  options.map { |key, value| "-#{key}#{value}" }.join(" ")
end

# Adapter config setup in text/connections/databases.yml
SPEC = CompositePrimaryKeys::ConnectionSpec['mysql']
ActiveRecord::Base.establish_connection(SPEC)

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
composite_primary_keys-5.0.4 test/connections/native_mysql/connection.rb
composite_primary_keys-5.0.2 test/connections/native_mysql/connection.rb
composite_primary_keys-5.0.1 test/connections/native_mysql/connection.rb
composite_primary_keys-5.0.0 test/connections/native_mysql/connection.rb
composite_primary_keys-5.0.0.rc1 test/connections/native_mysql/connection.rb
composite_primary_keys-4.1.2 test/connections/native_mysql/connection.rb
composite_primary_keys-4.1.1 test/connections/native_mysql/connection.rb
composite_primary_keys-4.0.0 test/connections/native_mysql/connection.rb
composite_primary_keys-4.0.0.beta9 test/connections/native_mysql/connection.rb
composite_primary_keys-4.0.0.beta8 test/connections/native_mysql/connection.rb
composite_primary_keys-4.0.0.beta7 test/connections/native_mysql/connection.rb
composite_primary_keys-4.0.0.beta6 test/connections/native_mysql/connection.rb
composite_primary_keys-4.0.0.beta5 test/connections/native_mysql/connection.rb
composite_primary_keys-4.0.0.beta4 test/connections/native_mysql/connection.rb