Skip to content

Instantly share code, notes, and snippets.

@pingles
Created May 4, 2011 08:10
Show Gist options
  • Save pingles/954910 to your computer and use it in GitHub Desktop.
Save pingles/954910 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'rbhive'
RBHive.connect('hive.server.address') do |connection|
connection.fetch 'SELECT * FROM cities'
end
# => [["London", "UK"], ["New York", "USA"], ["Mumbai", "India"]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment