bolt icon indicating copy to clipboard operation
bolt copied to clipboard

Check is a database open

Open Heshmatkhah opened this issue 7 years ago • 1 comments

I need some thing like db.IsOpen() to check is the database open or not. bolt database structure has unexported field open but I cant access to that from my code

Heshmatkhah avatar Oct 06 '17 15:10 Heshmatkhah

You could try to open it with a timeout, though that will tell you only if the db opened in write mode by another process

Le ven. 6 oct. 2017 17:53, M.A Heshmatkhah [email protected] a écrit :

I need some thing like db.IsOpen() to check is the database open or not. bolt database structure has unexported field open but I cant access to that from my code

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/boltdb/bolt/issues/734, or mute the thread https://github.com/notifications/unsubscribe-auth/AAGwMKiZwQFpDumTtms2PX-gXfr--BQTks5spkzpgaJpZM4Pwr49 .

vincent-petithory avatar Oct 06 '17 17:10 vincent-petithory