-
Notifications
You must be signed in to change notification settings - Fork 127
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
Flask SQLAlchemy Binds support #338
Comments
This looks like a flask-sqlalchemy only thing. I'm guessing the plugin will need to copy the I'll happily take a PR as long as it does nothing when the plugin isn't used. It probably needs some code adding here. |
Working on this. It was easy to pass along the
The passed-in However, I'm now hitting |
Ahh that's annoying. Sqlite can support multiple writing from multiple threads but doesn't by default. We might need some sqlite-specific documentation. |
Well that error went away if I didn't pass |
SQLAlchemy-Continuum does not appear to support Flask-SQLAlchemy's Binds:
https://flask-sqlalchemy.palletsprojects.com/en/2.x/binds/#binds
When attempting to modify a versioned object, the INSERT into transaction table fails because it is attempting to connect to the default database SQLALCHEMY_DATABASE_URI, which is SQLite, even though I'm using properly-configured SQLALCHEMY_BINDS and the bind_key for models. All versioning behavior should use the same bind as the models it extends.
Really, I'd just like some help getting this to work! ;-) Setting SQLALCHEMY_DATABASE_URI to the correct target helped, but I'm still seeing issues that seem like they're part of the same lack of support, e.g.:
The text was updated successfully, but these errors were encountered: