Add method to retrieve local filename

This commit is contained in:
Brian Buller 2016-03-31 06:57:48 -05:00
parent 9129007194
commit ac3cdddaea
1 changed files with 5 additions and 0 deletions

View File

@ -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() {