0.0
No commit activity in last 3 years
No release in over 3 years
Rails compatible gem that provides full DB connection and models to golos.cloud
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 1.7.0, ~> 1.7
>= 1.15.4, ~> 1.15
>= 12.1.0, ~> 12.1

Runtime

 Project Readme

GolosCloud

Gem Version

How To Use (Rails 4+)

  • Add Gem to Gemfile
    • gem 'golos_cloud', '~> 1.1'
  • Bundle Install Gems
    • bundle install

How to Subscribe

As of 2018-01-23, GolosSQL switches to subscription model. To use this gem, you must subscribe to @golossql and store the credentials as environment variables.

How To Use (Standalone)

  • gem install golos_cloud
  • `export GOLOSCLOUD_HOST=``
  • export GOLOSCLOUD_USERNAME=<your steemsql username>
  • export GOLOSCLOUD_PASSWORD=<your steemsql password>
  • irb
  • require 'golos_cloud'
  • GolosCloud::Comment.last

Models

  • Account
  • Block
  • Comment
  • Token
  • Transaction

Followers

How to query today's followers:

followers = GolosCloud::Tx::Custom::Follow
followers.following(:ned).today.count

Resteem

How to query today's "resteems":

reblogs = GolosCloud::Tx::Custom::Reblog
reblogs.author(:netuoso).today.count

Account Witness Proxy

How to query current accounts that are actively using a proxy:

proxied = GolosCloud::Tx::AccountWitnessProxy.active('netuoso')
proxied.pluck(:account)

Appiations

How to query comments by application:

comments = GolosCloud::Comment.app('esteem').where(author: 'good-karma')

How To Contribute

  • Fork this repo
  • Branch off Master and make your changes
  • Submit a PR to this repo's Master branch

License