sql_dialect_adjuster.py 770 B

12345678910111213141516171819202122232425
  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. class SqlDialectAdjuster:
  10. def adjust_type(self, type_name: str) -> str:
  11. return type_name
  12. def adjust_value(
  13. self, string_value: str, internal_type_identifier: str, type_name: str
  14. ) -> str:
  15. return string_value
  16. def adjust_enum_value(self, string_value: str) -> str:
  17. return string_value
  18. class MzSqlDialectAdjuster(SqlDialectAdjuster):
  19. pass