datalite icon indicating copy to clipboard operation
datalite copied to clipboard

A simple Python library to bind dataclasses with databases.

Results 5 datalite issues
Sort by recently updated
recently updated
newest added

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...

dependencies

I know it's work, but some type hint improvement may good. ![image](https://user-images.githubusercontent.com/49655146/191626709-656e64bc-ab5b-4bc5-bf29-f9bf651de814.png) ![image](https://user-images.githubusercontent.com/49655146/191626732-f4bb6ef8-28e9-4da4-899d-a0aef63d3bac.png)

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:...