Add some docs for range type operators

This commit is contained in:
Konsta Vesterinen
2014-01-14 16:39:17 +02:00
parent 5e7187a2c7
commit e4c0955707

View File

@@ -16,6 +16,25 @@ Some good reading for practical interval implementations:
http://wiki.postgresql.org/images/f/f0/Range-types.pdf http://wiki.postgresql.org/images/f/f0/Range-types.pdf
RangeType operators
-------------------
Comparison operators
^^^^^^^^^^^^^^^^^^^^
::
Car.price_range < [12, 300]
Car.price_range == [12, 300]
Car.price_range < 300
Car.price_range > (300, 500)
Car.price_range.in_([[300, 500]])
.. _intervals: https://github.com/kvesteri/intervals .. _intervals: https://github.com/kvesteri/intervals
""" """
from collections import Iterable from collections import Iterable