Sha256: 889d814b8d3be944e43b513511acf3b831e805ba0d02cf5ed3f48245e987e4fc

Contents?: true

Size: 319 Bytes

Versions: 8

Compression:

Stored size: 319 Bytes

Contents

require 'jvertica'
require 'dotenv'

# Create .env file like
# HOSTNAME=
# USERNAME=
# PASSWORD=
Dotenv.load

params = {
  host: ENV['HOSTNAME'],
  port: 5433,
  user: ENV['USERNAME'],
  password: ENV['PASSWORD'],
}
puts params

sql = 'select * from dt;'

c = Jvertica.connect(params)
c.query(sql) do |row|
  p row
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
jvertica-0.2.5 example/select.rb
jvertica-0.2.4 example/select.rb
jvertica-0.2.3 example/select.rb
jvertica-0.2.2 example/select.rb
jvertica-0.2.1 example/select.rb
jvertica-0.2.0 example/select.rb
jvertica-0.1.11 example/select.rb
jvertica-0.1.10 example/select.rb