packageboltimport("os")// Open creates and opens a database at the given path.// If the file does not exist then it will be created automatically.funcOpen(pathstring,modeos.FileMode)(*DB,error){db:=&DB{}iferr:=db.Open(path,mode);err!=nil{returnnil,err}returndb,nil}