bolt
bolt copied to clipboard
Check is a database open
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 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 .