summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/dialects/postgresql/__init__.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2013-12-27 18:25:57 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2013-12-27 18:25:57 -0500
commit2104d0ba2d612a26d363a3049d5e49efe4284e15 (patch)
tree94878393dfd1d689dd5173e86c575af4b44c5261 /lib/sqlalchemy/dialects/postgresql/__init__.py
parentde786a4208e621229769a8fb1f876f358dc4e70e (diff)
downloadsqlalchemy-2104d0ba2d612a26d363a3049d5e49efe4284e15.tar.gz
- rework the JSON expression system so that "astext" is called *after*
the indexing. this is for more natural operation. - also add cast() to the JSON expression to complement astext. This integrates the CAST call which will be needed frequently. Part of [ticket:2687]. - it's a little unclear how more advanced unicode attribute-access is going to go, some quick attempts at testing yielded strange error messages from psycopg2. - do other cross linking as mentioned in [ticket:2687].
Diffstat (limited to 'lib/sqlalchemy/dialects/postgresql/__init__.py')
-rw-r--r--lib/sqlalchemy/dialects/postgresql/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sqlalchemy/dialects/postgresql/__init__.py b/lib/sqlalchemy/dialects/postgresql/__init__.py
index cfe1ebce0..7f493e522 100644
--- a/lib/sqlalchemy/dialects/postgresql/__init__.py
+++ b/lib/sqlalchemy/dialects/postgresql/__init__.py
@@ -15,7 +15,7 @@ from .base import \
TSVECTOR
from .constraints import ExcludeConstraint
from .hstore import HSTORE, hstore
-from .json import JSON
+from .json import JSON, JSONElement
from .ranges import INT4RANGE, INT8RANGE, NUMRANGE, DATERANGE, TSRANGE, \
TSTZRANGE
@@ -25,5 +25,5 @@ __all__ = (
'DOUBLE_PRECISION', 'TIMESTAMP', 'TIME', 'DATE', 'BYTEA', 'BOOLEAN',
'INTERVAL', 'ARRAY', 'ENUM', 'dialect', 'Any', 'All', 'array', 'HSTORE',
'hstore', 'INT4RANGE', 'INT8RANGE', 'NUMRANGE', 'DATERANGE',
- 'TSRANGE', 'TSTZRANGE', 'json', 'JSON'
+ 'TSRANGE', 'TSTZRANGE', 'json', 'JSON', 'JSONElement'
)