code: func (idx *UniqueIndex) AllRecords(opts *Options) ([][]byte, error) {
  	var list [][]byte
  
  	c := internal.Cursor{C: idx.IndexBucket.Cursor(), Reverse: opts != nil && opts.Reverse}
  
  	for val, ident := c.First(); val != nil; val, ident = c.Next() {
  		if opts != nil && opts.Skip > 0 {
  			opts.Skip--
  			continue
  		}
  
  		if opts != nil && opts.Limit == 0 {
  			break
  		}
  
  		if opts != nil && opts.Limit > 0 {
  			opts.Limit--
  		}
  
  		list = append(list, ident)
  	}
  	return list, nil
  }
docs: // AllRecords returns all the IDs of this index