func Open(path string) (*DB, error) {
	data, err := ioutil.ReadFile(path)
	if err != nil || len(data) == 0 {
		if err == nil {
			err = fmt.Errorf("%s is empty or not redable", path)
		}
		return nil, errors.Annotate(err, "cannot open/read db file")
	}
	return FromBytes(data)
}
// Open will opens a db file and parses it
Open will opens a db file and parses it
// Open will opens a db file and parses it
func Open(path string) (*DB, error) {
	data, err := ioutil.ReadFile(path)
	if err != nil || len(data) == 0 {
		if err == nil {
			err = fmt.Errorf("%s is empty or not redable", path)
		}
		return nil, errors.Annotate(err, "cannot open/read db file")
	}
	return FromBytes(data)
}
func Open ( path string ) ( * DB , error ) { data , err := ioutil . ReadFile ( path ) if err != nil || len ( data ) == 0 { if err == nil { err = fmt . Errorf ( " " , path ) } return nil , errors . Annotate ( err , " " ) } return FromBytes ( data ) }
Open will opens a db file and parses it
Open will opens a db file and parses it