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

how to try to open a database without creating one? #1440

Open
davepacheco opened this issue Mar 13, 2023 · 0 comments
Open

how to try to open a database without creating one? #1440

davepacheco opened this issue Mar 13, 2023 · 0 comments

Comments

@davepacheco
Copy link

I want to write a debugging tool that dumps the contents of my program's sled database (while the program is not running). I know there's Db::was_recovered() to determine if the database already existed before it was opened. But what if I want to not open it if it doesn't already exist? I tried passing create_new(false) but that appeared to have no effect.

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

1 participant