]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Correct name for json_serializer / json_deserializer, document and test
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 9 Aug 2019 03:34:20 +0000 (23:34 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 9 Aug 2019 03:52:51 +0000 (23:52 -0400)
commit104e6907284e602a8485f32fc67fd6af0c00e4d0
treefd628fbc353341fa31953b5f55be98b9748e6bea
parentd8da7f5ac544f3dd853a221faa5fab4ff788e25b
Correct name for json_serializer / json_deserializer, document and test

The dialects that support json are supposed to take arguments
``json_serializer`` and ``json_deserializer`` at the create_engine() level,
however the SQLite dialect calls them ``_json_serilizer`` and
``_json_deserilalizer``.  The names have been corrected, the old names are
accepted with a change warning, and these parameters are now documented as
:paramref:`.create_engine.json_serializer` and
:paramref:`.create_engine.json_deserializer`.

Fixes: #4798
Change-Id: I1dbfe439b421fe9bb7ff3594ef455af8156f8851
doc/build/changelog/unreleased_13/4798.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/sqlite/base.py
lib/sqlalchemy/engine/create.py
lib/sqlalchemy/sql/sqltypes.py
lib/sqlalchemy/testing/suite/test_types.py
test/dialect/test_sqlite.py