diff options
author | nathan <nathan.alexander.rice@gmail.com> | 2013-12-10 10:01:51 -0500 |
---|---|---|
committer | nathan <nathan.alexander.rice@gmail.com> | 2013-12-10 10:01:51 -0500 |
commit | f285b3536fe01f21409e201fbeeac559ab423a9d (patch) | |
tree | 88688e41ea285c7aaf91b8e71bd9f10c159d5807 /lib/sqlalchemy/dialects/postgresql/pgjson.py | |
parent | ba73d619ca2199d96e92646021af3eb95186725e (diff) | |
download | sqlalchemy-f285b3536fe01f21409e201fbeeac559ab423a9d.tar.gz |
sqlalchemy/dialects/postgresql/pgjson:
- Fixed reference to HSTORE
- Corrected spelling of SQLAlchemy
sqlalchemy/dialects/postgresql/psycopg2:
- Added psycopg2 specific wrapper type for JSON which uses inherent json deserialization facilities
- Added code to detect and utilize the JSON wrapper if psycopg2 >= 2.5
test/dialect/postgresql/test_types:
- removed reference to use_native_hstore
Diffstat (limited to 'lib/sqlalchemy/dialects/postgresql/pgjson.py')
-rw-r--r-- | lib/sqlalchemy/dialects/postgresql/pgjson.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sqlalchemy/dialects/postgresql/pgjson.py b/lib/sqlalchemy/dialects/postgresql/pgjson.py index aef54709b..161fe83fa 100644 --- a/lib/sqlalchemy/dialects/postgresql/pgjson.py +++ b/lib/sqlalchemy/dialects/postgresql/pgjson.py @@ -16,7 +16,7 @@ __all__ = ('JSON', 'json') class JSON(sqltypes.TypeEngine): - """Represent the Postgresql HSTORE type. + """Represent the Postgresql JSON type. The :class:`.JSON` type stores arbitrary JSON format data, e.g.:: @@ -41,7 +41,7 @@ class JSON(sqltypes.TypeEngine): data_table.c.data.get_path('{key_1, key_2, ..., key_n}'] - Please be aware that when used with the SQL Alchemy ORM, you will need to + Please be aware that when used with the SQLAlchemy ORM, you will need to replace the JSON object present on an attribute with a new object in order for any changes to be properly persisted. |