datalite
datalite copied to clipboard
A simple Python library to bind dataclasses with databases.
Bumps [certifi](https://github.com/certifi/python-certifi) from 2022.5.18.1 to 2022.12.7. Commits 9e9e840 2022.12.07 b81bdb2 2022.09.24 939a28f 2022.09.14 aca828a 2022.06.15.2 de0eae1 Only use importlib.resources's new files() / Traversable API on Python ≥3.11 ... b8eb5e9 2022.06.15.1...
I know it's work, but some type hint improvement may good.  
Current implementation of fetch methods do not type hint objects returned, which makes it more difficult to use. ### Suggestion: Add a `TypeVar` to **fetch.py**: ``` python from typing import...
Lines in fetch_equals: ``` python cur.execute(f"SELECT * FROM {table_name} WHERE {field} = ?;", (value, )) obj_id, *field_values = list(cur.fetchone()) ``` crash execution due to None being returned from `cur.fetchone()` if...
I tried using this with a dataclass which contained a number of types marked `Optional[type]` and it failed with ``` datalite/commons.py in _convert_type(type_, type_overload) 23 return type_overload[type_] 24 except KeyError:...