clear_sqlmodel() — fastapi Function Reference
Architecture documentation for the clear_sqlmodel() function in test_tutorial002.py from the fastapi codebase.
Entity Profile
Dependency Diagram
graph TD 61866e2c_2c2a_d5b5_c116_6db4d0a4aca7["clear_sqlmodel()"] 24c45a29_accd_8258_a7da_ddf6ea0170f4["test_tutorial002.py"] 61866e2c_2c2a_d5b5_c116_6db4d0a4aca7 -->|defined in| 24c45a29_accd_8258_a7da_ddf6ea0170f4 2d272c04_a005_451d_b7d2_8acc3016f089["get_client()"] 2d272c04_a005_451d_b7d2_8acc3016f089 -->|calls| 61866e2c_2c2a_d5b5_c116_6db4d0a4aca7 style 61866e2c_2c2a_d5b5_c116_6db4d0a4aca7 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_tutorial/test_sql_databases/test_tutorial002.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
Source
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_tutorial002.py.
Where is clear_sqlmodel() defined?
clear_sqlmodel() is defined in tests/test_tutorial/test_sql_databases/test_tutorial002.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