func GetEntriesDB(db *Database) (map[string]string, error) {
	entries := make(map[string]string)
	err := db.BoltDB.View(func(tx *bolt.Tx) error {
		b := tx.Bucket([]byte(db.Bucket))
		b.ForEach(func(k, v []byte) error {
			entries[string(k)] = string(v)
			return nil
		})
		return nil
	})
	if err != nil {
		return nil, err
	}
	return entries, err
}
// GetEntriesDB reads all key-value pairs from the Bolt Database Bucket.
GetEntriesDB reads all key-value pairs from the Bolt Database Bucket.
// GetEntriesDB reads all key - value pairs from the Bolt Database Bucket .
func GetEntriesDB(db *Database) (map[string]string, error) {
	entries := make(map[string]string)
	err := db.BoltDB.View(func(tx *bolt.Tx) error {
		b := tx.Bucket([]byte(db.Bucket))
		b.ForEach(func(k, v []byte) error {
			entries[string(k)] = string(v)
			return nil
		})
		return nil
	})
	if err != nil {
		return nil, err
	}
	return entries, err
}
func GetEntriesDB ( db * Database ) ( map [ string ] string , error ) { entries := make ( map [ string ] string ) err := db . BoltDB . View ( func ( tx * bolt . Tx ) error { b := tx . Bucket ( [ ] byte ( db . Bucket ) ) b . ForEach ( func ( k , v [ ] byte ) error { entries [ string ( k ) ] = string ( v ) return nil } ) return nil } ) if err != nil { return nil , err } return entries , err }
GetEntriesDB reads all key-value pairs from the Bolt Database Bucket.
GetEntriesDB reads all key - value pairs from the Bolt Database Bucket .