jldb/mdb/index_test.go

10 lines
142 B
Go

package mdb
func (i Index[T]) Dump(tx *Snapshot) (l []T) {
i.Ascend(tx, func(t *T) bool {
l = append(l, *t)
return true
})
return l
}