-
Notifications
You must be signed in to change notification settings - Fork 161
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
Multiple cursors support #801
Conversation
Codecov Report
@@ Coverage Diff @@
## master #801 +/- ##
==========================================
+ Coverage 93.20% 93.45% +0.24%
==========================================
Files 13 13
Lines 1545 1542 -3
Branches 176 178 +2
==========================================
+ Hits 1440 1441 +1
+ Misses 76 72 -4
Partials 29 29
Continue to review full report at Codecov.
|
This pull request fixes 1 alert when merging 48cde02 into 65ca604 - view on LGTM.com fixed alerts:
|
This pull request fixes 4 alerts when merging e11c6fb into 65ca604 - view on LGTM.com fixed alerts:
|
@@ -43,7 +43,7 @@ def __init__(self, dsn, minsize, maxsize, timeout, *, | |||
raise ValueError("maxsize should be not less than minsize") | |||
self._dsn = dsn | |||
self._minsize = minsize | |||
self._loop = get_running_loop(kwargs.pop('loop', None) is not None) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suppose we are ready to drop this
finally: | ||
self._engine = None | ||
self._conn = None | ||
asyncio.ensure_future(self._conn.close(), loop=self._loop) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
close is coroutine, so we have to await it somehow
self._obj = None | ||
try: | ||
if asyncio.iscoroutinefunction(self._obj.close): | ||
await self._obj.close() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
obj.close
could be a coroutine, for instance, in case of Engine.acquire
.
This pull request fixes 4 alerts when merging 5c4f92e into 65ca604 - view on LGTM.com fixed alerts:
|
This pull request fixes 4 alerts when merging 6b2db0c into 59671d3 - view on LGTM.com fixed alerts:
|
This pull request fixes 4 alerts when merging 164a47c into 59671d3 - view on LGTM.com fixed alerts:
|
164a47c
to
b804c88
Compare
b804c88
to
774fd83
Compare
This pull request fixes 4 alerts when merging 774fd83 into 2e6e0f5 - view on LGTM.com fixed alerts:
|
This pull request fixes 4 alerts when merging f44009b into 2e6e0f5 - view on LGTM.com fixed alerts:
|
This pull request fixes 4 alerts when merging 49824c3 into 2e6e0f5 - view on LGTM.com fixed alerts:
|
What do these changes do?
Support of multiple cursors which was initially proposed in #548 to resolve #535 and #364 by @vir-mir. I've slightly modified the implementation and rebased on top of master.
Are there changes in behavior for the user?
Related issue number
#777, #535, #364, #548, #778
Checklist