File tree Expand file tree Collapse file tree 1 file changed +2
-17
lines changed Expand file tree Collapse file tree 1 file changed +2
-17
lines changed Original file line number Diff line number Diff line change 1- from abc import abstractmethod
2- from typing import Generator
1+ from .strategy import PostgresPartitioningStrategy
32
4- from .range_partition import PostgresRangePartition
53
6-
7- class PostgresRangePartitioningStrategy :
4+ class PostgresRangePartitioningStrategy (PostgresPartitioningStrategy ):
85 """Base class for implementing a partitioning strategy for a range
96 partitioned table."""
107
11- @abstractmethod
12- def to_create (
13- self ,
14- ) -> Generator [PostgresRangePartition , None , None ]:
15- """Generates a list of partitions to be created."""
16-
17- @abstractmethod
18- def to_delete (
19- self ,
20- ) -> Generator [PostgresRangePartition , None , None ]:
21- """Generates a list of partitions to be deleted."""
22-
238
249__all__ = ["PostgresRangePartitioningStrategy" ]
You can’t perform that action at this time.
0 commit comments