diff options
author | Damian Dimmich <damian@tauri-tec.com> | 2014-06-24 11:23:21 +0400 |
---|---|---|
committer | Damian Dimmich <damian@tauri-tec.com> | 2014-06-24 11:23:21 +0400 |
commit | 01cc8fbacce8f571a47a3617b913e579bd666f97 (patch) | |
tree | 25428147b849bc3498be322619d819687ee813e6 /lib/sqlalchemy/dialects/postgresql/base.py | |
parent | f10eb28d90cbf73f4757897f52bf26722f98372e (diff) | |
download | sqlalchemy-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.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 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" |