-
-
Notifications
You must be signed in to change notification settings - Fork 297
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
Looking for help: migrating dataset to sqla 2.0.0 #411
Comments
I'll see if I can migrate it at least for now |
@karlicoss That's great, thank you! |
So I did some work on it here, but haven't quite managed to finish :( master...karlicoss:dataset:sqlalchemy-2.0 on sqlalchemy 2.0 I'm getting five tests failing (on sqlite)
For the first three -- not sure what's texactly the issue, for the last two the problems seems to be in It would be cool to merge the changes as is at least, since they are passing for sqlite on sqlachemy 1.4 and I think would at least allow to at least use dataset in read only mode with sqlalchemy 2.0 But I'm getting one test failure for postgres, weird that it's the only one, can't quite figure out why:
|
The 5 errors are all because SQLAlchemy removes auto commit in 2.0.0b1 version, I fix it and all tests passed. However I am not sure there is absolute no any bugs |
dataset depends on versions of SQLAlchemy older than what nixpkgs provides. see pudo/dataset#411
This package doesn't support[1] SQLAlchemy>=2.0.0 which has been in our repositories since 08441f7 [1]: pudo/dataset#411
If all tests are passed, maybe it's time to merge? |
I never got most of it to pass, particularly against engines other than SQLite (postgres, mysql). The problem is that the way |
Hey all. I've just pushed dataset 1.6.0, which pins the sqlalchemy dependency for this library to >= 1.3.2, < 2.0.0. This is meant as a hotfix to prevent people from getting broken installs by default.
Beyond that, ensuring that dataset will run with both sqlalchemy 1.3, 1.4 and 2.0 will be a bit of work - not horrible, but a solid afternoon of coding. It's forced me to realise that I haven't been running dataset in any of my projects for over two years, and this is also starting to show in some of the developer tooling the lib is using. So I'd like to send out a ping to the community and see if anyone is interested in taking the lead in adapting the library, perhaps even with a long-term view to becoming its new maintainer.
The text was updated successfully, but these errors were encountered: