DavyJonesLocker/postgres_ext
DavyJonesLocker/postgres_ext has 635 GitHub stars and 174 forks. GitHot measured 0 stars in 24 hours and 0 in 7 days. Last checked 2026-11-23 05:03 UTC. Last push 2021-08-23.
측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 기록 수집 중
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
소개
Adds support for missing PostgreSQL data types to ActiveRecord
데이터README.md
OriginalThis Gem is No Longer Maintained
It still works and may be useful to you for Rails versions < 5, but will not be updated to be compatible with Rails version > 5.
PostgresExt
Adds missing native PostgreSQL data types to ActiveRecord and convenient querying extensions for ActiveRecord and Arel for Rails 4.x
Looking for help?
If it is a bug please open an issue on
Github. If you need help using
the gem please ask the question on
Stack Overflow. Be sure to tag the
question with DockYard so we can find it.
Installation
Add this line to your application's Gemfile:
gem 'postgres_ext'
And then execute:
$ bundle
Or install it yourself as:
$ gem install postgres_ext
Usage
Just require 'postgres_ext' and use ActiveRecord as you normally would! postgres_ext extends
ActiveRecord's data type handling and query methods in both Arel and
ActiveRecord.
Where are the datatypes from PostgresExt 1.x? ActiveRecord 4.x includes all the data types that PostgresExt added to ActiveRecord 3.2.x. We'll be adding more datatypes as we come across them.
Developing
To work on postgres_ext locally, follow these steps:
- Run
bundle install, this will install (almost) all the development dependencies - Run
gem install byebug(not a declared dependency to not break CI) - Run
bundle exec rake db:setup, this will set up the.envfile necessary to run the tests and set up the database - Run
bundle exec rake db:create, this will create the test database - Run
bundle exec rake db:migrate, this will set up the database tables required by the test - Run
BUNDLE_GEMFILE='gemfiles/Gemfile.activerecord-4.0.x' bundle install --quietto create the Gemfile.lock for 4.0. - Run
BUNDLE_GEMFILE='gemfiles/Gemfile.activerecord-4.1.x' bundle install --quietto create the Gemfile.lock for 4.1. - Run
bundle exec rake test:allto run tests against all supported versions of Active Record
Authors
관련 프로젝트 살펴보기
불러오는 중…


