- Synchronous
sqlite:///database_path
- Example
sqlite:///./sql_app.db
- Example
- Asynchronous
- Install
aiosqlite
- Poetry
poetry add aiosqlite
- Pip
pip install aiosqlite
- Poetry
sqlite+aiosqlite:///database_name.sqlite
- Install
- Install
aiomysql
, which will also installpymysql
- Poetry
poetry add aiomysql
- Pip
pip install aiomysql
- Not all versions of
pymysql
work correctly withaiomysql
, that's why we installedaiomysql
beforepymysql
.
- Poetry
- Synchronous
mysql+pymysql://username:password@host:port/database_name
- Asynchronous
mysql+aiomysql://username:password@host:port/database_name
- Install
asyncpg
- Poetry
poetry add asyncpg
- Pip
pip install asyncpg
- Poetry
- Synchronous
postgresql://username:password@host:port/database_name
- Asynchronous
postgresql+asyncpg://username:password@host:port/database_name
- Install
cx-Oracle-async
- Poetry
poetry add cx-Oracle-async
- Pip
pip install cx-Oracle-async
- Poetry
- Synchronous
oracle://username:password@host:port/sidname
- Asynchronous
oracle+cx_Oracle_async://username:password@database_name
Check out other database drivers from this link