pg_evaluation_strategy.py 977 B

1234567891011121314151617181920212223242526
  1. # Copyright Materialize, Inc. and contributors. All rights reserved.
  2. #
  3. # Use of this software is governed by the Business Source License
  4. # included in the LICENSE file at the root of this repository.
  5. #
  6. # As of the Change Date specified in that file, in accordance with
  7. # the Business Source License, use of this software will be governed
  8. # by the Apache License, Version 2.0.
  9. from materialize.output_consistency.execution.evaluation_strategy import (
  10. DataFlowRenderingEvaluation,
  11. EvaluationStrategyKey,
  12. )
  13. from materialize.postgres_consistency.execution.pg_dialect_adjuster import (
  14. PgSqlDialectAdjuster,
  15. )
  16. class PgEvaluation(DataFlowRenderingEvaluation):
  17. def __init__(self) -> None:
  18. super().__init__()
  19. self.identifier = EvaluationStrategyKey.POSTGRES
  20. self.name = "Postgres evaluation"
  21. self.object_name_base = "t_pg"
  22. self.simple_db_object_name = "postgres_evaluation"
  23. self.sql_adjuster = PgSqlDialectAdjuster()