jldb/mdb/index_test.go

9 lines
126 B
Go
Raw Permalink Normal View History

2023-10-13 09:43:27 +00:00
package mdb
func (i Index[T]) Dump(tx *Snapshot) (l []T) {
2023-12-24 19:41:43 +00:00
for t := range i.Ascend(tx) {
2023-10-13 09:43:27 +00:00
l = append(l, *t)
2023-12-24 19:41:43 +00:00
}
2023-10-13 09:43:27 +00:00
return l
}