Home / Function/ on_startup() — fastapi Function Reference

on_startup() — fastapi Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  2a59ee14_e128_81f6_ef9a_d98a6a1fc0f5["on_startup()"]
  dd65a72e_9da3_b427_af0a_95d6560a6d19["tutorial001_an_py39.py"]
  2a59ee14_e128_81f6_ef9a_d98a6a1fc0f5 -->|defined in| dd65a72e_9da3_b427_af0a_95d6560a6d19
  917440f0_4035_9f70_ed49_12fba5b653fc["create_db_and_tables()"]
  2a59ee14_e128_81f6_ef9a_d98a6a1fc0f5 -->|calls| 917440f0_4035_9f70_ed49_12fba5b653fc
  style 2a59ee14_e128_81f6_ef9a_d98a6a1fc0f5 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

docs_src/sql_databases/tutorial001_an_py39.py lines 36–37

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_an_py39.py.
Where is on_startup() defined?
on_startup() is defined in docs_src/sql_databases/tutorial001_an_py39.py at line 36.
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