ydb-platform / ydb-sqlalchemy

YQL Dialect for SQLAlchemy
Apache License 2.0
18 stars 5 forks source link

Async driver implementation #26

Closed LuckySting closed 5 months ago

LuckySting commented 5 months ago

In this PR

Add isort

isort is a Python utility / library to sort imports alphabetically, and automatically separated into sections and by type. It will help to keep imports well organized in project during the development.

Implement asynchronous driver

The support of an async drivers is needed to allow usage of this dialect in async context, which is the modern way to write applications in python. I used SQLAlchemy async-sync-async trick to implement an async driver without the copy-paste of code.

Enable multi-driver testing

The SQLAlchemy test suite supports running its test on a several combinations of dialects, which I use to run the same test on both sync and async drivers.