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

database_name of MontyStore doesn't seem to update the name #820

Closed
Andrew-S-Rosen opened this issue Jul 9, 2023 · 2 comments · Fixed by #827
Closed

database_name of MontyStore doesn't seem to update the name #820

Andrew-S-Rosen opened this issue Jul 9, 2023 · 2 comments · Fixed by #827

Comments

@Andrew-S-Rosen
Copy link
Member

from maggma.stores.mongolike import MontyStore

store = MontyStore("my_results",database_name="NotNamedDB")
results = {"test":{"cow":"moo"}}
store.connect()
with store:
    store.update(results, key="test")
print(f"Stored {len(results)} results in your database.")
store.close()

You'll see a directory named "db" added to the local working directory instead of "NotNamedDB".

@rkingsbury
Copy link
Collaborator

Thanks @arosen93 , I added a fix for this in with some other enhancements to MontyStore I was working on.

@Andrew-S-Rosen
Copy link
Member Author

Awesome, thanks!! Feel free to close this issue!

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 a pull request may close this issue.

2 participants