-
Notifications
You must be signed in to change notification settings - Fork 21
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
Connection should be passed into flowmachine query classes #391
Comments
Thinking more generally, the following things are created as persistent objects attached to
And used by calling |
Agreed on returning all three. I still don't really see |
Definitely don't want them stuck on You're thinking something a bit like flask's contexts and |
I'm thinking about this one again (it bugs be to have not resolved it). So at a highish level the options I see are:
3 definitely feels easiest in terms of the refactoring, and still opens up some possibilities in terms of easier testing and using multiple connections. |
Closely related to #391, the query classes should be refactored so that the flowdb connection is passed into them, rather than the connection being instantiated globally and accessed through
Query.connection
. This would have the advantage that we can more easily pass a dummy connection during tests, and hopefully allow creating query objects without a active connection.The text was updated successfully, but these errors were encountered: