Skip to content

How to open the database read-only? #53

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

Open
DavidVentura opened this issue Feb 14, 2025 · 1 comment
Open

How to open the database read-only? #53

DavidVentura opened this issue Feb 14, 2025 · 1 comment

Comments

@DavidVentura
Copy link

Hi
I'm opening a leveldb database to read 1 value, but this causes writes, acquiring the lock, but also creating .log files

In goleveldb, it's possible to open the database read-only; can I do that on leveldb-rs?

@dermesser
Copy link
Owner

I've looked at this issue, and while in principle it should be possible, the initialization process (inherited from the original implementation) is kind of complex - so it's not super easy to pull apart, unfortunately.

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

2 participants