[Sqlalchemy-tickets] Issue #3046: PostgreSQL range types need better documentation (zzzeek/sqlalche
Brought to you by:
zzzeek
|
From: David L. <iss...@bi...> - 2014-05-09 14:26:13
|
New issue 3046: PostgreSQL range types need better documentation https://bitbucket.org/zzzeek/sqlalchemy/issue/3046/postgresql-range-types-need-better David Lord: When initializing a model, what is the correct value to pass to a range column? Prompted by [this StackOverflow question](https://stackoverflow.com/questions/23563736/how-to-use-postgres-numeric-range-with-sqlalchemy), I looked at [the tests](https://bitbucket.org/zzzeek/sqlalchemy/src/55eacc8dbea3c3f98197bde9034fd6558fb2bc09/test/dialect/postgresql/test_types.py?at=master#cl-1589) and found they were using a [type helper from psycopg2](http://pythonhosted.org//psycopg2/extras.html#range-data-types). Is that the proper way, or is there something on SQLAlchemy's side too? Either way, it's not made clear in the docs. |