Database
Starlette is not strictly tied to any particular database implementation.
You are free to use any async database library that you prefer. Some popular options include:
- SQLAlchemy - The Python SQL toolkit with native async support (2.0+).
- SQLModel - SQL databases in Python, designed for simplicity, built on top of SQLAlchemy and Pydantic.
- Tortoise ORM - An easy-to-use asyncio ORM inspired by Django.
- Piccolo - A fast, user-friendly ORM and query builder.
Refer to your chosen database library's documentation for specific connection and query patterns.