]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- rework JSON expressions to be based off __getitem__ exclusively
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 17 Dec 2013 20:13:39 +0000 (15:13 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 17 Dec 2013 20:13:39 +0000 (15:13 -0500)
commit73013914e7eae2a0480492ece085b48c5938dd84
tree7a79331a1a2d868b83c020e0c0d1f2c83fe68f9c
parent10ac89cef3dafc7a23c8947255f26d60db2c4d84
- rework JSON expressions to be based off __getitem__ exclusively
- add support for "standalone" JSON objects; this involves getting CAST
to upgrade the given type of a bound parameter.  should add a core-only test
for this.
- add tests for "standalone" json round trips both with and without unicode
- add mechanism by which we remove psycopg2's "json" handler in order to get
the effect of using our non-native result handlers
lib/sqlalchemy/dialects/postgresql/__init__.py
lib/sqlalchemy/dialects/postgresql/json.py [moved from lib/sqlalchemy/dialects/postgresql/pgjson.py with 60% similarity]
lib/sqlalchemy/dialects/postgresql/psycopg2.py
lib/sqlalchemy/sql/elements.py
test/dialect/postgresql/test_types.py