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