Skip to content

bricolages/queuery_client

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
bin
 
 
lib
 
 
 
 
 
 
 
 
 
 

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

About

Queuery Redshift HTTP API Client

Resources

Stars

Watchers

Forks

Packages

No packages published