By inertia on Skatehive
Access HiveSQL.io data from your ruby/rails application. Gem repository: https://github.com/inertia186/hivesql How to Subscribe Note: HiveSQL is a monthly subscription. To use this gem, you must subscribe to @hivesql and store the credentials as environment variables. See: https://hivesql.io Installation First, install ruby. One way to do this is install rvm. Once ruby is installed, install hivesql with the gem command: ``bash gem install hivesql ` Or, add it to your Gemfile: `ruby gem 'hivesql' ` How To Use (Standalone) `bash gem install hivesql export HIVESQLHOST= export HIVESQLUSERNAME= export HIVESQLPASSWORD= hive_sql top upvoted ` The above example will query the top upvoted content for the last 7 days. Models Account Block Transaction various operations Comment Community Role Subscriber Follower Reblog Tag Token Witness Followers How to query today's followers: `ruby followers = HiveSQL::Tx::Custom::Follow followers.following(:alice).today.count ` Reblog How to query today's rebl