forward3d / rbhive

Ruby gem for querying Apache Hive
http://www.forward3d.com
MIT License
98 stars 75 forks source link

Adding tcli_connection options database #40

Open yuua opened 8 years ago

yuua commented 8 years ago

Thank you for this great library!

I wasn't able to specify the database name other than the default

I changed it in order to add database to option in tcli connection.

sample

RBHive.tcli_connect(hive.address,hive.port,{database: 'hogehuga'}) do |c|
  c.fetch 'show tables'
end

For this reason, I have sent a pull request.

Thank you.