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