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

Optionally read Arbin into in-memory sqlite without temporary file #105

Merged
merged 2 commits into from
Mar 3, 2024

Conversation

ml-evs
Copy link
Collaborator

@ml-evs ml-evs commented Feb 12, 2024

Closes #104.

Changes the convert_arbin_to_sqlite function to allow output_file to be None, in which case an in-memory database is used (or equivalently if :memory: is explicitly passed).

I've also tried to make sure that the sqlite database is properly closed when the function completes (which was never a big deal for the command-line version but is useful when using the functional interface directly).

@ml-evs ml-evs changed the title Optioanlly read Arbin into in-memory sqlite without temporary file Optionally read Arbin into in-memory sqlite without temporary file Feb 21, 2024
galvani/res2sqlite.py Show resolved Hide resolved
tests/test_Arbin.py Outdated Show resolved Hide resolved
galvani/res2sqlite.py Show resolved Hide resolved
@chatcannon chatcannon merged commit 3c904db into master Mar 3, 2024
0 of 4 checks passed
@chatcannon chatcannon deleted the ml-evs/arbin-in-memory branch March 3, 2024 08:32
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.

Read Arbin files without writing temporary database
2 participants