Skip to content

Commit 4ef5e95

Browse files
Mate Valkoerezsh
authored andcommitted
support boolean as PK (make sense if it's part of composite key)
1 parent 5f57083 commit 4ef5e95

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sqeleton/abcs/database_types.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@ class PrecisionType(ColType):
2424
rounds: Union[bool, Unknown] = Unknown
2525

2626

27-
class Boolean(ColType):
28-
precision = 0
29-
30-
3127
class TemporalType(PrecisionType):
3228
pass
3329

@@ -82,6 +78,10 @@ def python_type(self) -> type:
8278
return decimal.Decimal
8379

8480

81+
class Boolean(ColType, IKey):
82+
precision = 0
83+
python_type = bool
84+
8585
@dataclass
8686
class StringType(ColType):
8787
python_type = str

0 commit comments

Comments
 (0)