Home / Function/ on_startup() — fastapi Function Reference

on_startup() — fastapi Function Reference

Architecture documentation for the on_startup() function in tutorial001_py39.py from the fastapi codebase.

Entity Profile

Dependency Diagram

graph TD
  8f4bf95e_0fe6_8f0e_a51b_bd29357e2955["on_startup()"]
  2fcb5668_aee6_2e6d_0ad8_2c98f18aaa48["tutorial001_py39.py"]
  8f4bf95e_0fe6_8f0e_a51b_bd29357e2955 -->|defined in| 2fcb5668_aee6_2e6d_0ad8_2c98f18aaa48
  0d91ad3b_faea_7d49_a88b_1de57e0e87a4["create_db_and_tables()"]
  8f4bf95e_0fe6_8f0e_a51b_bd29357e2955 -->|calls| 0d91ad3b_faea_7d49_a88b_1de57e0e87a4
  style 8f4bf95e_0fe6_8f0e_a51b_bd29357e2955 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

docs_src/sql_databases/tutorial001_py39.py lines 34–35

def on_startup():
    create_db_and_tables()

Domain

Subdomains

Frequently Asked Questions

What does on_startup() do?
on_startup() is a function in the fastapi codebase, defined in docs_src/sql_databases/tutorial001_py39.py.
Where is on_startup() defined?
on_startup() is defined in docs_src/sql_databases/tutorial001_py39.py at line 34.
What does on_startup() call?
on_startup() calls 1 function(s): create_db_and_tables.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free