Skip to content

Add use_list param to Connection init #168

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 6 commits into from
Closed

Conversation

artembo
Copy link
Contributor

@artembo artembo commented Aug 24, 2020

No description provided.

Closes #159

Co-authored-by Denis Ignatenko <[email protected]>
the integration Django with Tarantool database through django-tarantool
database backend [2] which requires dbapi connector to the database.

All the optional extensions and methods were ignored because Django
does not require them. Anyway, feel free to suggest its implementation
as needed.

Interactive transactions are not currently supported by Tarantool and
theirs implementation will be added in the connector when the feature
is stable in Tarantool itself.

[1] https://www.python.org/dev/peps/pep-0249/
[2] https://github.com/artembo/django-tarantool
Used dbapi-compliance [1] package to test module according to pep-249
specification. Not implemented features are skipped in the tests.

Added dbapi-compliance package to test.sh requirements and appveyor.yml

[1] https://github.com/baztian/dbapi-compliance/
@artembo artembo linked an issue Aug 24, 2020 that may be closed by this pull request
By default the `use_list` parameter tells msgpack to unpack array to
Python's list which is not hashable and can not be used as a dict keys
and sets elements. Django expects the response rows to be tuples
because it will be used in python set() [1]

Now the `use_list` parameter can be configured in the Connection init

[1] https://github.com/django/django/blob/stable/3.0.x/django/contrib/auth/management/__init__.py#L72
@artembo artembo force-pushed the artembo/gh-166-use_list branch from dea142f to cc215a4 Compare August 24, 2020 20:18
@artembo artembo closed this Oct 18, 2020
@DifferentialOrange DifferentialOrange deleted the artembo/gh-166-use_list branch November 9, 2022 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make use_list param configurable in Connector
1 participant