Skip to content

Make the Database a context manager that closes the connection on exit#12

Open
mjumbewu wants to merge 1 commit intomasterfrom
contextmanager
Open

Make the Database a context manager that closes the connection on exit#12
mjumbewu wants to merge 1 commit intomasterfrom
contextmanager

Conversation

@mjumbewu
Copy link
Contributor

@mjumbewu mjumbewu commented Oct 4, 2016

e.g.:

import datum
with datum.connect('oracle-stgeom://...') as db:
    print(db.tables)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant