vesoft-inc / nebula-python

Client API of Nebula Graph in Python
193 stars 78 forks source link

Introduce contextmanager for ConnectionPool #85

Closed wey-gu closed 3 years ago

wey-gu commented 3 years ago

This commit introduced a new method ConnectionPool.session_context, which takes exactly the same arguments as ConnectionPool.get_session. It's just a context manager for handling connection sessions.

Issue:(#84)

Signed-off-by: Wey Gu weyl.gu@gmail.com

CLAassistant commented 3 years ago

CLA assistant check
All committers have signed the CLA.

jievince commented 3 years ago

Well done! It brings convenience to users.