operations.py 506 B

1234567891011121314151617181920212223
  1. from psqlextra.compiler import (
  2. SQLAggregateCompiler,
  3. SQLCompiler,
  4. SQLDeleteCompiler,
  5. SQLInsertCompiler,
  6. SQLUpdateCompiler,
  7. )
  8. from . import base_impl
  9. class PostgresOperations(base_impl.operations()): # type: ignore[misc]
  10. """Simple operations specific to PostgreSQL."""
  11. compiler_module = "psqlextra.compiler"
  12. compiler_classes = [
  13. SQLCompiler,
  14. SQLDeleteCompiler,
  15. SQLAggregateCompiler,
  16. SQLUpdateCompiler,
  17. SQLInsertCompiler,
  18. ]