-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Labels
enhancementNew feature or requestNew feature or request
Description
What are the drawbacks of using Boolean column as part of a composite primary key?
I saw that Boolean data type is not an instance of IKey, thus can't be used as primary/composite key. A simple change (see below) would fix it, but I'm wondering that this might be on purpose.
Describe the solution you'd like
class Boolean(IKey, ColType):
precision = 0
python_type = bool
Alternatively boolean col can be to convert boolean to varchar, or int 0/1, but that feels like unnecessary here.
Update: typo fix
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request