Skip to content
Queuery Redshift HTTP API Client
Ruby Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin Impl naively Mar 14, 2017
lib Bump up version to 1.0.1 Aug 30, 2019
.gitignore Impl naively Mar 14, 2017
Gemfile Use stable version redshift-connector Mar 22, 2017
README.md Fix configuration entry name Apr 21, 2017
Rakefile Impl naively Mar 14, 2017
queuery_client.gemspec Now queuery_client does not depend on redshift-connector gem Jul 18, 2019

README.md

QueueryClient

Queuery client for Ruby.

Installation

Add this line to your application's Gemfile:

gem 'queuery_client'

Configuration

If you don't use Rails

# configuration
RedshiftConnector.logger = Logger.new($stdout)
GarageClient.configure do |config|
  config.name = "queuery-example"
end
QueueryClient.configure do |config|
  config.endpoint = 'http://localhost:3000'
  config.token = 'XXXXXXXXXXXXXXXXXXXXX'
  config.token_secret = '*******************'
end

If you are on Rails

In config/initializers/queuery.rb:

QueueryClient.configure do |config|
  config.endpoint = 'http://localhost:3000'
  config.token = 'XXXXXXXXXXXXXXXXXXXXX'
  config.token_secret = '*******************'
end

Usage

select_stmt = 'select column_a, column_b from the_great_table; -- an awesome query shows amazing fact up'
bundle = QueueryClient.query(select_stmt)
bundle.each do |row|
  # do some useful works
  p row
end
You can’t perform that action at this time.