summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/dialects/postgresql/base.py
diff options
context:
space:
mode:
authornathan <nathan.alexander.rice@gmail.com>2013-12-09 11:46:36 -0500
committernathan <nathan.alexander.rice@gmail.com>2013-12-09 11:46:36 -0500
commit64288c7d6ffc021e2388aa764e9a3b921506c7a0 (patch)
treeadf83af6255bc1e0d1e86cd0d4c0ed4735a737ad /lib/sqlalchemy/dialects/postgresql/base.py
parent3a03c2e715544476ab2e53ab9b26d83800e437ed (diff)
downloadsqlalchemy-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.py3
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"