alan-turing-institute / sqlsynthgen

Synthetic data for SQL databases
MIT License
11 stars 1 forks source link

Sqlalchemy2 #137

Closed mhauru closed 1 year ago

mhauru commented 1 year ago

A new release of sqlacodegen unblocked sqlalchemy2 and consequently snsql 1.0 for us, this upgrades to those. Some small changes were required to the sqlalchemy code because some of the interfaces have changed.

This unblocks other changes, like type hints for sqlalchemy objects and I think possibly some asyncpg stuff, but I'm leaving those for another PR for cleanliness.

mhauru commented 1 year ago

Had to upgrade mypy too because it was failing to recognise that some field existed, which then resulted in a few other small changes.