-
Notifications
You must be signed in to change notification settings - Fork 85
Add other input types for SQLAlchemy BIT model #137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Add other input types for SQLAlchemy BIT model #137
Conversation
Co-authored-by: Giacomo rua <[email protected]>
Hi @jackrua, thanks for the PR. Added support for passing |
Thank you @ankane for the feedback and sorry for the late response. I merged master in my branch and updated my PR, and now the CI passes too. However, I was thinking that now when you read from the DB using the sqlalchemy model, we are returning |
Hi,
First of all, thank you for the great library @ankane!
I'm opening this PR to address some issues that have been raised by users (#84, #110 and #112), that is to input types other than string in the
BIT
SQLAlchemy model (also when using theasyncpg
dialect). In brief with this PR, given:You can add it to your database using whatever input you like (and this will be transformed following the logic already present in the
init
of theBit
class):