File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed
Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 1+ import enum
2+
3+
4+ class ReplicaReadStrategy (enum .StrEnum ):
5+ DISTRIBUTED = enum .auto ()
6+ SEQUENTIAL = enum .auto ()
Original file line number Diff line number Diff line change 1- import enum
21import json
32import logging
43import pathlib
1413from django .db .models import Manager , Model
1514from django .db .utils import OperationalError
1615
16+ from common .core import ReplicaReadStrategy
17+
1718logger = logging .getLogger (__name__ )
1819
1920UNKNOWN = "unknown"
2526_replica_sequential_names_by_prefix : dict [ReplicaNamePrefix , Iterator [str ]] = {}
2627
2728
28- class ReplicaReadStrategy (enum .StrEnum ):
29- DISTRIBUTED = enum .auto ()
30- SEQUENTIAL = enum .auto ()
31-
32-
3329class SelfHostedData (TypedDict ):
3430 has_users : bool
3531 has_logins : bool
You can’t perform that action at this time.
0 commit comments