Home / Function/ clear_sqlmodel() — fastapi Function Reference

clear_sqlmodel() — fastapi Function Reference

Architecture documentation for the clear_sqlmodel() function in test_tutorial001.py from the fastapi codebase.

Entity Profile

Dependency Diagram

graph TD
  9ab476f0_4310_c8d1_b261_2c964541dfca["clear_sqlmodel()"]
  ff56476d_b0e9_82b7_ad6a_ed215d04210f["test_tutorial001.py"]
  9ab476f0_4310_c8d1_b261_2c964541dfca -->|defined in| ff56476d_b0e9_82b7_ad6a_ed215d04210f
  da680418_00bc_9356_1fcc_a731f3f0f353["get_client()"]
  da680418_00bc_9356_1fcc_a731f3f0f353 -->|calls| 9ab476f0_4310_c8d1_b261_2c964541dfca
  style 9ab476f0_4310_c8d1_b261_2c964541dfca fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_tutorial/test_sql_databases/test_tutorial001.py lines 15–19

def clear_sqlmodel():
    # Clear the tables in the metadata for the default base model
    SQLModel.metadata.clear()
    # Clear the Models associated with the registry, to avoid warnings
    default_registry.dispose()

Domain

Subdomains

Called By

Frequently Asked Questions

What does clear_sqlmodel() do?
clear_sqlmodel() is a function in the fastapi codebase, defined in tests/test_tutorial/test_sql_databases/test_tutorial001.py.
Where is clear_sqlmodel() defined?
clear_sqlmodel() is defined in tests/test_tutorial/test_sql_databases/test_tutorial001.py at line 15.
What calls clear_sqlmodel()?
clear_sqlmodel() is called by 1 function(s): get_client.

Analyze Your Own Codebase

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

Try Supermodel Free