jldb/mdb/index_test.go

10 lines
142 B
Go
Raw Normal View History

2023-10-13 09:43:27 +00:00
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
}