Class: ActiveRecord::Base
- Inherits:
-
Object
- Object
- ActiveRecord::Base
- Defined in:
- lib/arjdbc/vertica/connection_methods.rb
Class Method Summary collapse
Class Method Details
.vertica_connection(config) ⇒ Object
3 4 5 6 7 8 |
# File 'lib/arjdbc/vertica/connection_methods.rb', line 3 def vertica_connection( config ) config[:port] || 5433 config[:url] ||= "jdbc:vertica://#{config[:host]}:#{config[:port]}/#{ config[:database]}" config[:driver] ||= "com.vertica.jdbc.Driver" jdbc_connection(config) end |