tarantool / tarantool-python

Python client library for Tarantool
https://www.tarantool.io
BSD 2-Clause "Simplified" License
100 stars 48 forks source link

Make use_list param configurable in Connector #166

Closed artembo closed 3 years ago

artembo commented 4 years ago

By default 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]

Need to make it configurable to let the user choose which type of rows can be fetched from the database response.

[1] https://github.com/django/django/blob/stable/3.0.x/django/contrib/auth/management/__init__.py#L72