dmpayton / reqon

Build simple, read-only RethinkDB queries from JSON
https://reqon.readthedocs.org/
MIT License
2 stars 1 forks source link

Type hints and coercing #1

Closed dmpayton closed 8 years ago

dmpayton commented 9 years ago

ReQL supports many different types that JSON does not and, given the schema-less nature of RethinkDB, there's no way to determine what the type for a given query parameter should be. We need a way to tell the query builder that, for example, "2015-07-24" really means datetime.date(2015, 7, 24).

dmpayton commented 8 years ago

ReQON has supported type hints for a while, e.g., ['$date', '2016-07-24']. Client libraries that programatically build ReQON queries should handle the conversion from datetime objects transparently.