MCPcopy Create free account
hub / github.com/dbunt1tled/python-fast-api / Entity

Class Entity

src/core/db/entity.py:7–9  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5
6
7class Entity(DeclarativeBase):
8 def to_dict(self, camel: bool = False) -> dict[str, Any]:
9 return {to_camel(col.name) if camel else col.name: getattr(self, col.name) for col in self.__table__.columns}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected