(self)
| 289 | |
| 290 | @property |
| 291 | def db(self) -> BaseDBAsyncClient: |
| 292 | if self.default_connection is None: |
| 293 | raise ConfigurationError( |
| 294 | f"default_connection for the model {self._model} cannot be None" |
| 295 | ) |
| 296 | return get_connection(self.default_connection) |
| 297 | |
| 298 | @property |
| 299 | def ordering(self) -> tuple[tuple[str, Order], ...]: |