From 01cc8fbacce8f571a47a3617b913e579bd666f97 Mon Sep 17 00:00:00 2001 From: Damian Dimmich Date: Tue, 24 Jun 2014 11:23:21 +0400 Subject: 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. --- lib/sqlalchemy/dialects/postgresql/base.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/sqlalchemy/dialects/postgresql/base.py') 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" -- cgit v1.2.1