Sha256: 3614b17e8875aa83a674d146756f52d0cc69957ac1f93908a05270f529c1ad3d
Contents?: true
Size: 818 Bytes
Versions: 11
Compression:
Stored size: 818 Bytes
Contents
class ActiveRecord::Base def self.vertica5_connection(config) config[:port] ||= 5433 config[:url] = "jdbc:vertica://#{config[:host]}:#{config[:port]}/#{config[:database]}" config[:driver] = "com.vertica.jdbc.Driver" config[:prepared_statements] = false config[:connection_alive_sql] = "SELECT 1;" config[:adapter_class] = ::ActiveRecord::ConnectionAdapters::VerticaAdapter jdbc_connection(config) end class << self # connection methods should be the same alias_method :vertica7_connection, :vertica5_connection alias_method :vertica6_connection, :vertica5_connection alias_method :jdbcvertica7_connection, :vertica5_connection alias_method :jdbcvertica6_connection, :vertica5_connection alias_method :jdbcvertica5_connection, :vertica5_connection end end
Version data entries
11 entries across 11 versions & 1 rubygems