Sha256: e140660f016ff566b4a67b5bff1c936edb21c44998afdb6b083f0da13564d27c
Contents?: true
Size: 334 Bytes
Versions: 1
Compression:
Stored size: 334 Bytes
Contents
require 'dbi' require 'dbd/Jdbc' require 'jdbc-vertica' $user = 'dbadmin' $password = '********' $host = 'vertica.jp' Jdbc::Vertica.load_driver DBI.connect( "DBI:Jdbc:vertica://#{$host}:5433/", $user, $password, 'driver' => 'com.vertica.jdbc.Driver' ) do |dbh| puts "Connected" p dbh.select_all('select * from dt;') end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jdbc-vertica-0.0.1 | example/connect_and_show_tables.rb |