Browse Source

Merge pull request #52 from chef/int4range_doc

Document int4range a bit
David N. Welton 10 years ago
parent
commit
1b0e48fd18
1 changed files with 5 additions and 0 deletions
  1. 5 0
      README.md

+ 5 - 0
README.md

@@ -364,9 +364,14 @@ PG type       | Representation
   array       | `[1, 2, 3]`
   record      | `{int2, time, text, ...}` (decode only)
   point       |  `{10.2, 100.12}`
+  int4range   | `[1,5)`
 
   `timestamp` and `timestamptz` parameters can take `erlang:now()` format: `{MegaSeconds, Seconds, MicroSeconds}`
 
+  `int4range` is a range type for ints (bigint not supported yet) that obeys inclusive/exclusive semantics,
+  bracket and parentheses respectively. Additionally, infinities are represented by the atoms `minus_infinity`
+  and `plus_infinity`
+
 ## Errors
 
 Errors originating from the PostgreSQL backend are returned as `{error, #error{}}`,