tarantool / tarantool-python

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

Extention types as keys #240

Closed DifferentialOrange closed 1 year ago

DifferentialOrange commented 1 year ago

There is an explicit type checks for SELECT, UPDATE and DELETE operation keys: https://github.com/tarantool/tarantool-python/blob/5ffe902f1009a7c7418e2b6a1a504a81d9eb6f4c/tarantool/utils.py#L26

Extended types are not supported yet:

>>> conn.select('space', uuid.uuid4())
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/georgymoiseev/Development/github/tarantool/tarantool-python/tarantool/connection.py", line 1519, in select
    key = check_key(key, select=True)
  File "/home/georgymoiseev/Development/github/tarantool/tarantool-python/tarantool/utils.py", line 51, in check_key
    assert isinstance(key, supported_types)
AssertionError