sqlmodel icon indicating copy to clipboard operation
sqlmodel copied to clipboard

[WIP] Update `on_event` with lifespan event handler in docs

Open ppommer opened this issue 1 year ago • 1 comments

Taking care of

DeprecationWarning: 
          on_event is deprecated, use lifespan event handlers instead.
  
          Read more about it in the
          [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/).

in the FastAPI and Pydantic Tutorial.

Deprecation is noted here and here.


  • [x] Update deprecated on_event with lifespan event
  • [x] Update tutorial text
  • [ ] Update tutorial line numbers

ppommer avatar May 31 '24 05:05 ppommer

📝 Docs preview for commit 79462c54dc090c0202f4dfb526e65724de4b831b at: https://32aff99e.sqlmodel.pages.dev

github-actions[bot] avatar May 31 '24 05:05 github-actions[bot]