No commit activity in last 3 years
No release in over 3 years
Enforce usage of the postgresql_cursor gem in Rails projects.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.7
~> 10.1
~> 3.0
~> 0.24
 Project Readme

Rubocop - Enforce PostgreSQL Cursor usage

Enforces the use of each_instance over find_each, so that all batching is done with the postgresql_cursor gem.

Supports auto-correct!

Installation

Add this line to your application's Gemfile:

gem 'rubocop-postgresql_cursor'

And then execute:

$ bundle

Add the following line to rubocop.yml:

require:
 - rubocop-postgresql_cursor

Contributing

  1. Fork it ( https://github.com/tijmenb/rubocop-postgres_cursor/fork )
  2. Create your feature branch (git checkout -b feature/my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin feature/my-new-feature)
  5. Create a new Pull Request