summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/dialects/postgresql/base.py
diff options
context:
space:
mode:
authorDamian Dimmich <damian@tauri-tec.com>2014-06-24 11:23:21 +0400
committerDamian Dimmich <damian@tauri-tec.com>2014-06-24 11:23:21 +0400
commit01cc8fbacce8f571a47a3617b913e579bd666f97 (patch)
tree25428147b849bc3498be322619d819687ee813e6 /lib/sqlalchemy/dialects/postgresql/base.py
parentf10eb28d90cbf73f4757897f52bf26722f98372e (diff)
downloadsqlalchemy-01cc8fbacce8f571a47a3617b913e579bd666f97.tar.gz
initial support for JSONB - this only allows you to define the JSONB
datatype - this does not add any of the additional support for querying/indexing yet.
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 35f335252..6c4031b01 100644
--- a/lib/sqlalchemy/dialects/postgresql/base.py
+++ b/lib/sqlalchemy/dialects/postgresql/base.py
@@ -1384,6 +1384,9 @@ class PGTypeCompiler(compiler.GenericTypeCompiler):
def visit_JSON(self, type_):
return "JSON"
+ def visit_JSONB(self, type_):
+ return "JSONB"
+
def visit_INT4RANGE(self, type_):
return "INT4RANGE"