Skip to content

Unnecesary redeclaration of sessionmaker #3

@suspiciousRaccoon

Description

@suspiciousRaccoon

In src/fastapi_server/app/api/dependencies/database.py you have a function that redeclares the sessionmaker each time you call it. The purpose of the sessionmaker is to have the settings for all sessions defined in a single place. You can move it to database.py like how the FastAPI tutorial does.

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