Files
chaisql/internal/testutil/debug.go
Christian Edward Jackson-Gruber 4fce4a7f00 Bump pebble (#541)
* Bump pebble to 1.1.5 and fix call sites.

* tidy go.mod in /cmd/chai

* Fix /cmd/chai refernece to NewIter
2025-08-15 07:22:51 +04:00

23 lines
373 B
Go

package testutil
import (
"fmt"
"testing"
"github.com/cockroachdb/pebble"
"github.com/stretchr/testify/require"
)
func DumpPebble(t testing.TB, pdb *pebble.DB) {
t.Helper()
it, err := pdb.NewIter(nil)
require.NoError(t, err)
for it.First(); it.Valid(); it.Next() {
fmt.Printf("%v: %v\n", it.Key(), it.Value())
}
err = it.Close()
require.NoError(t, err)
}