materialized_view.py 501 B

12345678910111213141516
  1. from typing import Type
  2. from psqlextra.models import PostgresMaterializedViewModel
  3. from .view import PostgresViewModelState
  4. class PostgresMaterializedViewModelState(PostgresViewModelState):
  5. """Represents the state of a :see:PostgresMaterializedViewModel in the
  6. migrations."""
  7. @classmethod
  8. def _get_base_model_class(self) -> Type[PostgresMaterializedViewModel]:
  9. """Gets the class to use as a base class for rendered models."""
  10. return PostgresMaterializedViewModel