Skip to content

query support a la Flask SQLAlchemy #26

@acidjunk

Description

@acidjunk

Whilst transitioning our stack to FastAPI I luckily found this package. Thanks for the work on this package; it's a nice and easy way to get a DB connection without the need for a dependency that injects it in all controllers.

Our old Flask project uses some functionality from flask-sqlalchemy, that seems absent in fastapi-sqlalchemy: a query property on all models. So instead of db.session.query(User).all() we are using User.query.all()

Are there any plans to support this kind of querying?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions