... | ... | @@ -5,7 +5,7 @@ |
|
|
* [TODO](https://github.com/crashtech/torque-postgresql/blob/master/TODO.md)
|
|
|
|
|
|
# Description
|
|
|
`torque-postgresql` is a plugin that enhances Ruby on Rails enabling easy access to existing PostgreSQL advanced resources, such as data types and queries statements. Its features are designed to be as similar as Rails architecture and they work as smooth as possible.
|
|
|
`torque-postgresql` is a plugin that enhances Ruby on Rails enabling easy access to existing PostgreSQL advanced resources, such as data types and queries statements. Its features are designed to be as similar to Rails architecture and they work as smoothly as possible.
|
|
|
|
|
|
100% plug-and-play, with optional configurations, so that can be adapted to your project's design pattern.
|
|
|
|
... | ... | @@ -13,7 +13,8 @@ |
|
|
|
|
|
To install torque-postgresql you need to add the following to your Gemfile:
|
|
|
```ruby
|
|
|
gem 'torque-postgresql', '~> 0.2'
|
|
|
gem 'torque-postgresql', '~> 1.1' # For Rails < 6.0
|
|
|
gem 'torque-postgresql', '~> 2.0' # For Rails >= 6.0
|
|
|
```
|
|
|
|
|
|
Also, run:
|
... | ... | @@ -25,7 +26,7 @@ $ bundle |
|
|
Or for non-Gemfile related usage, simply:
|
|
|
|
|
|
```
|
|
|
$ gem intall orque-postgresql
|
|
|
$ gem install torque-postgresql
|
|
|
```
|
|
|
|
|
|
# Usage
|
... | ... | @@ -34,13 +35,26 @@ These are the currently available features: |
|
|
|
|
|
* [Configuring](https://github.com/crashtech/torque-postgresql/wiki/Configuring)
|
|
|
|
|
|
## Core Extensions
|
|
|
|
|
|
* [Range](https://github.com/crashtech/torque-postgresql/wiki/Range)
|
|
|
|
|
|
## Datatypes
|
|
|
|
|
|
* [Enum](https://github.com/crashtech/torque-postgresql/wiki/Enum)
|
|
|
* [EnumSet](https://github.com/crashtech/torque-postgresql/wiki/Enum-Set)
|
|
|
* [Interval](https://github.com/crashtech/torque-postgresql/wiki/Interval)
|
|
|
* [Date/Time Range](https://github.com/crashtech/torque-postgresql/wiki/Date-Time-Range)
|
|
|
* [Box](https://github.com/crashtech/torque-postgresql/wiki/Box)
|
|
|
* [Circle](https://github.com/crashtech/torque-postgresql/wiki/Circle)
|
|
|
* [Line](https://github.com/crashtech/torque-postgresql/wiki/Line)
|
|
|
* [Segment](https://github.com/crashtech/torque-postgresql/wiki/Segment)
|
|
|
|
|
|
## Querying
|
|
|
|
|
|
* [Arel](https://github.com/crashtech/torque-postgresql/wiki/Arel)
|
|
|
* [Has Many](https://github.com/crashtech/torque-postgresql/wiki/Has-Many)
|
|
|
* [Belongs to Many](https://github.com/crashtech/torque-postgresql/wiki/Belongs-to-Many)
|
|
|
* [Dynamic Attributes](https://github.com/crashtech/torque-postgresql/wiki/Dynamic-Attributes)
|
|
|
* [Distinct On](https://github.com/crashtech/torque-postgresql/wiki/Distinct-On)
|
|
|
* [Auxiliary Statements](https://github.com/crashtech/torque-postgresql/wiki/Auxiliary-Statements)
|
... | ... | |