diff options
author | nathan <nathan.alexander.rice@gmail.com> | 2013-12-09 11:46:36 -0500 |
---|---|---|
committer | nathan <nathan.alexander.rice@gmail.com> | 2013-12-09 11:46:36 -0500 |
commit | 64288c7d6ffc021e2388aa764e9a3b921506c7a0 (patch) | |
tree | adf83af6255bc1e0d1e86cd0d4c0ed4735a737ad /lib/sqlalchemy/dialects/postgresql/base.py | |
parent | 3a03c2e715544476ab2e53ab9b26d83800e437ed (diff) | |
download | sqlalchemy-64288c7d6ffc021e2388aa764e9a3b921506c7a0.tar.gz |
sqlalchemy/dialects/postgresql/__init__.py:
- Added import references to JSON class
sqlalchemy/dialects/postgresql/base.py:
- Added visitor method for JSON class
sqlalchemy/dialects/postgresql/pgjson (new):
- JSON class, supports automatic serialization and deserialization of json data, as well as basic json operators.
Diffstat (limited to 'lib/sqlalchemy/dialects/postgresql/base.py')
-rw-r--r-- | lib/sqlalchemy/dialects/postgresql/base.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/sqlalchemy/dialects/postgresql/base.py b/lib/sqlalchemy/dialects/postgresql/base.py index b80f269c1..6469f3b70 100644 --- a/lib/sqlalchemy/dialects/postgresql/base.py +++ b/lib/sqlalchemy/dialects/postgresql/base.py @@ -1187,6 +1187,9 @@ class PGTypeCompiler(compiler.GenericTypeCompiler): def visit_HSTORE(self, type_): return "HSTORE" + def visit_JSON(self, type_): + return "JSON" + def visit_INT4RANGE(self, type_): return "INT4RANGE" |