tarantool-python
tarantool-python copied to clipboard
DB-API: Provide type objects and constructors
https://www.python.org/dev/peps/pep-0249/#type-objects-and-constructors
The standard defines the following type objects:
- STRING type
- BINARY type (supported in tarantool since 2.2.0-645-gb4e61e1b6)
- NUMBER type
- DATETIME type (not supported in tarantool yet)
- ROWID type (not supported in tarantool)
The standard also defines a set of constructors for those types. All of them are relevant to DATETIME except the following:
- Binary(string)
Let's provide types, which is supported in tarantool. Let's decide how to better deal with types, which are not supported in tarantool and which are supported in some versions.