summaryrefslogtreecommitdiff
path: root/lib/_json.py
Commit message (Collapse)AuthorAgeFilesLines
* Remove redundant parenthesesHugo2017-11-281-1/+1
|
* Update documentation to reflect JSON import behaviorJon Dufresne2017-11-281-4/+2
| | | | | | | | The docs don't need to describe what will happen on Python versions before 2.6 as they are unsupported by psycopg2. Should have been included in commit d58844e5483483240f97537e9a77b4e79cea2ab3, but was missed.
* Clean up JSON workarounds for unsupported Python versionsJon Dufresne2017-11-261-28/+4
| | | | | | All Python versions supported by psycopg2 have the json module. It was added in Python 2.6. Can remove checks for availability, slightly simplifying the code.
* Added Json.prepare()fix-562Daniele Varrazzo2017-06-161-1/+8
| | | | Close #562
* Python source cleanup using flake8Daniele Varrazzo2016-10-111-6/+8
|
* Python 3.1 bytes.decode() doesn't support keyword argumentsDaniele Varrazzo2015-02-081-1/+1
| | | | Sucker.
* Add register_default_jsonb() and register the typeDaniele Varrazzo2014-08-131-0/+16
|
* Added name param to register_json()Daniele Varrazzo2014-08-131-13/+15
|
* Added str() for the Json adapterDaniele Varrazzo2014-02-221-0/+8
| | | | Fixes ticket #191.
* Fixed json doc errorDaniele Varrazzo2012-09-251-1/+1
|
* Json documentation improvedDaniele Varrazzo2012-09-241-52/+5
|
* Don't create/register a json array typecaster if no oid providedDaniele Varrazzo2012-09-241-1/+4
|
* Pasto fixedDaniele Varrazzo2012-09-201-1/+1
|
* Fixed json typecaster with NULL inputDaniele Varrazzo2012-09-201-0/+2
|
* Dropped keywords passthrough in Json adapterDaniele Varrazzo2012-09-191-23/+55
| | | | | | | | | Pass a dumps function instead. Allow customizing by either arg passing or subclassing. The basic Json class now raises ImportError on getquoted() if json is not available, thus allowing using a customized Json subclass even when the json module is not available.
* Added register_default_json() functionDaniele Varrazzo2012-09-191-2/+19
| | | | Register a typecaster for PostgreSQL 9.2 json.
* First parameter of register_json defaults to NoneDaniele Varrazzo2012-09-191-1/+1
|
* Added json typecasterDaniele Varrazzo2012-09-191-0/+187