Skip to content
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

Destructor function is missing #95

Closed
ichbestimmtnicht opened this issue Aug 27, 2018 · 1 comment
Closed

Destructor function is missing #95

ichbestimmtnicht opened this issue Aug 27, 2018 · 1 comment

Comments

@ichbestimmtnicht
Copy link

Please add a .close() and or .save_and_close() function to gently quit the database.

@Evidlo
Copy link
Member

Evidlo commented Jan 8, 2019

This is implemented in parse_file() in the construct lib: https://github.com/construct/construct/blob/master/construct/core.py#L324

When you leave the block with return the fd is closed as mentioned in this SO post.

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

No branches or pull requests

3 participants