MCPcopy Index your code
hub / github.com/fastapi/sqlmodel / is_table_model_class

Function is_table_model_class

sqlmodel/_compat.py:115–119  ·  view source on GitHub ↗
(cls: type[Any])

Source from the content-addressed store, hash-verified

113
114
115def is_table_model_class(cls: type[Any]) -> bool:
116 config = getattr(cls, "model_config", {})
117 if config:
118 return config.get("table", False) or False
119 return False
120
121
122def get_relationship_to(

Callers 6

sqlmodel_validateFunction · 0.85
sqlmodel_initFunction · 0.85
__setattr__Method · 0.85
__delattr__Method · 0.85
__init__Method · 0.85
__setattr__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…