Sha256: f3af11e0b1f064a9db36c5afffdb120fcbac2a6fc266997c16277ccf52a2d764
Contents?: true
Size: 474 Bytes
Versions: 1
Compression:
Stored size: 474 Bytes
Contents
print "Using native MySQL\n" require 'active_record' 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 locals/database_connections.rb SPEC = CompositePrimaryKeys::ConnectionSpec[:mysql] ActiveRecord::Base.establish_connection(SPEC)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
composite_primary_keys-3.1.7 | test/connections/native_mysql/connection.rb |