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

Method __init__

src/core/db/repository.py:115–118  ·  view source on GitHub ↗
(self, db_config: MyDatabaseConfig, model: type[T], id_field: str = "id")

Source from the content-addressed store, hash-verified

113
114class BaseRepository(ABC, Generic[T]):
115 def __init__(self, db_config: MyDatabaseConfig, model: type[T], id_field: str = "id"):
116 self._db_config = db_config
117 self._model = model
118 self._id_field = id_field
119
120 async def get_by_id(
121 self,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected