From ac3cdddaea2054f76732e6af5e2bbd55cde3d3c3 Mon Sep 17 00:00:00 2001 From: Brian Buller Date: Thu, 31 Mar 2016 06:57:48 -0500 Subject: [PATCH] Add method to retrieve local filename --- boltrest.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/boltrest.go b/boltrest.go index 37944d9..fe57543 100644 --- a/boltrest.go +++ b/boltrest.go @@ -65,6 +65,11 @@ func (b *DB) Close() error { return err } +// GetFilename returns the local file for the DB +func (b *DB) GetFilename() string { + return b.localFile +} + // Offline sets this DB to offline mode // That means it won't try to sync anything func (b *DB) Offline() {