You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add support for dependency injection. This will allow things like open database connections, loggers to be added once at the top level and be accessible to every route if required.
Something like this
@app.get("/"):
deffx(request, db): # db is possible right nowprint(db)
HIgh Level Implementation
Allow variable params in the callable functions
Go to the function executors(rust side) and call the functions with variable params
The text was updated successfully, but these errors were encountered:
Sorry for the late response; I would want to work on a similar feature, but I believe that once my work is done, it shouldn't be too difficult to extend the additions to allow for proper dependency injection. I'll make sure of that.
EDIT: Just to clarify I will not be working on dependency injection specifically, just the validation stuff; if you want, you can wait until that's done so that it's easier to work on dependency injection? I should be able to finish it soon.
Current Behavior
No dependency injection is supported right now.
Desired Behavior
Add support for dependency injection. This will allow things like open database connections, loggers to be added once at the top level and be accessible to every route if required.
Something like this
HIgh Level Implementation
The text was updated successfully, but these errors were encountered: