From: Kofi Kusi Appau Date: Mon, 29 Sep 2025 16:08:08 +0000 (+0000) Subject: 📝 Fix typo in `docs/tutorial/fastapi/simple-hero-api.md` (#1583) X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6e3bae04186f5b8df15f86c395a048269a733dd0;p=thirdparty%2Ffastapi%2Fsqlmodel.git 📝 Fix typo in `docs/tutorial/fastapi/simple-hero-api.md` (#1583) 📝 Update function name from create_tables to create_db_and_tables --- diff --git a/docs/tutorial/fastapi/simple-hero-api.md b/docs/tutorial/fastapi/simple-hero-api.md index 163fa281..79cf075e 100644 --- a/docs/tutorial/fastapi/simple-hero-api.md +++ b/docs/tutorial/fastapi/simple-hero-api.md @@ -60,7 +60,7 @@ And then create an `app` object that is an instance of that `FastAPI` class: ## Create Database and Tables on `startup` -We want to make sure that once the app starts running, the function `create_tables` is called. To create the database and tables. +We want to make sure that once the app starts running, the function `create_db_and_tables` is called. To create the database and tables. This should be called only once at startup, not before every request, so we put it in the function to handle the `"startup"` event: