You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Have you tried Badger before this proposal? and did not find anything similar?
Yes
What you wanted to do.
I like to check two things,
first: check if a folder is a database folder
second: if it’s already open by another process/instance/machine
What you actually did.
I wrote two simple util methods for it, but because Windows and Unix (Linux) are quite different in handling this, it would be much more far-sighted to have an interface/API on the badger side for this.
Why wasn't it great, with examples.
In my code i have to know the implementation details of badgerDB's file layout and even have to rewrite parts of the already present but private code (reading MANIFEST file, folder locking mechanism) And it feels like a word around for the problem.
Have you tried Badger before this proposal? and did not find anything similar?
Yes
What you wanted to do.
I like to check two things,
first: check if a folder is a database folder
second: if it’s already open by another process/instance/machine
What you actually did.
I wrote two simple util methods for it, but because Windows and Unix (Linux) are quite different in handling this, it would be much more far-sighted to have an interface/API on the badger side for this.
Why wasn't it great, with examples.
In my code i have to know the implementation details of badgerDB's file layout and even have to rewrite parts of the already present but private code (reading MANIFEST file, folder locking mechanism) And it feels like a word around for the problem.
Additional information.
see: https://discuss.dgraph.io/t/how-to-check-if-a-folder-is-a-database-folder-and-if-its-already-open/19364
The text was updated successfully, but these errors were encountered: