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

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