|
| 1 | +tarantool-python (0.7.0-0) unstable; urgency=medium |
| 2 | + |
| 3 | + ## Overview |
| 4 | + |
| 5 | + This release offers two major features: SQL support and implementation |
| 6 | + of the Database API (PEP-0249). |
| 7 | + |
| 8 | + Simple example of using SQL: |
| 9 | + |
| 10 | + | #!/usr/bin/env python |
| 11 | + | |
| 12 | + | # In tarantool console: |
| 13 | + | # |
| 14 | + | # tarantool> box.cfg{listen = 'localhost:3301'} |
| 15 | + | # tarantool> box.schema.user.create('me', {password = 'secret'}) |
| 16 | + | # tarantool> box.schema.user.grant('me','read,write,execute,create,drop,alter','universe') |
| 17 | + | |
| 18 | + | from pprint import pprint |
| 19 | + | import tarantool |
| 20 | + | |
| 21 | + | connection = tarantool.connect(host='localhost', port=3301, user='me', password='secret') |
| 22 | + | res = connection.execute('SELECT :foo, :bar', {'foo': 5, 'bar': 6}) |
| 23 | + | pprint(res) |
| 24 | + | |
| 25 | + | # Those properties are None for SELECT, shown for the reference. |
| 26 | + | print('autoincrement_ids: {}'.format(res.autoincrement_ids)) |
| 27 | + | print('affected_row_count: {}'.format(res.affected_row_count)) |
| 28 | + |
| 29 | + See the similar example implemented using the Database API on the |
| 30 | + [wiki page][1]. |
| 31 | + |
| 32 | + The Database API becomes the base for the [django-tarantool][2] backend. |
| 33 | + |
| 34 | + Aside of those changes, the release provides compatibility with the new |
| 35 | + version of the msgpack library (1.0.0) and fixes several tricky cases |
| 36 | + around `encoding=None` option. |
| 37 | + |
| 38 | + [1]: https://github.com/tarantool/tarantool-python/wiki/PEP-249-Database-API |
| 39 | + [2]: https://pypi.org/project/django-tarantool/ |
| 40 | + |
| 41 | + ## Breaking changes |
| 42 | + |
| 43 | + This release should not break existing code. |
| 44 | + |
| 45 | + ## New features |
| 46 | + |
| 47 | + * Support msgpack 1.0.0 (#155, PR #173). |
| 48 | + * Added SQL support (`<connection>.execute()` method) (#159, PR #161). |
| 49 | + * Allow to receive a Tarantool tuple as a Python tuple, not a list, with |
| 50 | + `use_list=False` connection option (#166, PR #161). |
| 51 | + * Support the Database API (PEP-0249) (PR #161). |
| 52 | + |
| 53 | + ## Bugfixes |
| 54 | + |
| 55 | + * schema: support encoding=None connections (PR #172). |
| 56 | + |
| 57 | + ## Other |
| 58 | + |
| 59 | + Infrastructure, CI / CD, testing, readme, pure development changes, |
| 60 | + which do not affect an end user directly. |
| 61 | + |
| 62 | + Note: testing changes that were introduced as part of a feature / a |
| 63 | + bugfix are not listed here. |
| 64 | + |
| 65 | + * deployment: fixed README.rst and setup.py points, where `twine` or |
| 66 | + pypi.org complains (PR #147). |
| 67 | + * readme: fixed links to tarantool documentation (PR #151). |
| 68 | + * test: eliminate deprecated box.cfg options (8ff9a3f9, bd37703c). |
| 69 | + * gitignore: add .idea (e49f5f05). |
| 70 | + * ci: dropped Ubuntu Disco, which reaches EOL (21e3ebf6). |
| 71 | + * ci: added Fedora 30, Ubuntu Eoan and Focal (PR #165). |
| 72 | + * ci: deploy to 2_3 and 2_4 repositories (PR #165). |
| 73 | + * ci: worked around PyYAML installation problem on AppVeyor (PR #165). |
| 74 | + * ci: verify on Python 3.8 (PR #161). |
| 75 | + * test: fixed luacheck warnings (#178, PR #179). |
| 76 | + * readme: refreshed the description of tarantool features (PR #180). |
| 77 | + * test: ensure compatibility with Python 3 for some testing / |
| 78 | + documentation building code (PR #181). |
| 79 | + |
| 80 | + -- Alexander Turenko < [email protected]> Mon, 28 Dec 2020 03:11:10 +0300 |
| 81 | + |
1 | 82 | tarantool-python (0.6.6-0) unstable; urgency=medium
|
2 | 83 |
|
3 | 84 | ## Breaking changes
|
|
0 commit comments