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
3
2
4
- from .range_partition import PostgresRangePartition
5
3
6
-
7
- class PostgresRangePartitioningStrategy :
4
+ class PostgresRangePartitioningStrategy (PostgresPartitioningStrategy ):
8
5
"""Base class for implementing a partitioning strategy for a range
9
6
partitioned table."""
10
7
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
-
23
8
24
9
__all__ = ["PostgresRangePartitioningStrategy" ]
You can’t perform that action at this time.
0 commit comments