{"repo":"rkrage/pg_party","free":true,"listed":false,"github":"https://github.com/rkrage/pg_party","clone":"git clone https://github.com/rkrage/pg_party.git","description":"ActiveRecord PostgreSQL Partitioning","language":"Ruby","stars":529,"topics":["activerecord","rails","ruby","postgresql","postgres","partitioning","partition"],"license":"MIT","category":"databases-storage","readme_excerpt":"PgParty [ ][rubygems] [ ][circle] [ ][cc maintainability] [ ][cc coverage] [rubygems]: https://rubygems.org/gems/pg party [circle]: https://circleci.com/gh/rkrage/pg party/tree/master [cc maintainability]: https://codeclimate.com/github/rkrage/pg party/maintainability [cc coverage]: https://codeclimate.com/github/rkrage/pg party/test coverage ActiveRecord migrations and model helpers for creating and managing PostgreSQL 10+ partitions! Features - Migration methods for partition specific database operations - Model methods for querying partitioned data, creating adhoc partitions, and retreiving partition metadata Limitations - Partition tables are not represented correctly in db/schema.rb — please use the :sql schema format Compatibility This gem is tested against: - Rails: 7.2, 8.0, 8.1 - Ruby: 3.2, latest (currently 3.4 at the time of this commit) - PostgreSQL: 14, 15, 16, 17, 18 Future Work I plan to separate out the model functionality into a new gem and port the migration functionality into pg\\ ha\\ migrations (some of which has already been done). I will continue to maintain this gem (bugfixes / support for new versions of Rails) until that work is complete. I originally planned to add a feature for automatic partition creation, but I think that functionality would be better served by pg\\ partman. Installation Add this line to your application's Gemfile: And then execute: Or install it yourself as: Note that the gemspec does not require pg , as some model methods may work","default_branch":null,"files":null,"tree":[],"storefront":"/r/rkrage","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/rkrage/pg_party/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}