mirror of
https://github.com/luxfi/zapdb.git
synced 2026-07-26 22:46:36 +00:00
feat: reset module path to luxfi/zapdb v1.0.0
Removed /v4 suffix from module path and all internal imports. Go module is now github.com/luxfi/zapdb (no major version suffix). Import as: import "github.com/luxfi/zapdb" No code changes — only module path and import rewrite.
This commit is contained in:
@@ -13,8 +13,8 @@ import (
|
||||
"fmt"
|
||||
"io"
|
||||
|
||||
"github.com/luxfi/zapdb/v4/pb"
|
||||
"github.com/luxfi/zapdb/v4/y"
|
||||
"github.com/luxfi/zapdb/pb"
|
||||
"github.com/luxfi/zapdb/y"
|
||||
"github.com/dgraph-io/ristretto/v2/z"
|
||||
)
|
||||
|
||||
|
||||
+1
-1
@@ -18,7 +18,7 @@ import (
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/luxfi/zapdb/v4/pb"
|
||||
"github.com/luxfi/zapdb/pb"
|
||||
)
|
||||
|
||||
func TestBackupRestore1(t *testing.T) {
|
||||
|
||||
@@ -12,7 +12,7 @@ import (
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"github.com/luxfi/zapdb/v4"
|
||||
"github.com/luxfi/zapdb"
|
||||
)
|
||||
|
||||
var bo = struct {
|
||||
|
||||
+3
-3
@@ -22,9 +22,9 @@ import (
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"github.com/luxfi/zapdb/v4"
|
||||
"github.com/luxfi/zapdb/v4/pb"
|
||||
"github.com/luxfi/zapdb/v4/y"
|
||||
"github.com/luxfi/zapdb"
|
||||
"github.com/luxfi/zapdb/pb"
|
||||
"github.com/luxfi/zapdb/y"
|
||||
"github.com/dgraph-io/ristretto/v2/z"
|
||||
)
|
||||
|
||||
|
||||
@@ -12,8 +12,8 @@ import (
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"github.com/luxfi/zapdb/v4"
|
||||
"github.com/luxfi/zapdb/v4/options"
|
||||
"github.com/luxfi/zapdb"
|
||||
"github.com/luxfi/zapdb/options"
|
||||
)
|
||||
|
||||
var flattenCmd = &cobra.Command{
|
||||
|
||||
+4
-4
@@ -19,10 +19,10 @@ import (
|
||||
"github.com/dustin/go-humanize"
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"github.com/luxfi/zapdb/v4"
|
||||
"github.com/luxfi/zapdb/v4/options"
|
||||
"github.com/luxfi/zapdb/v4/table"
|
||||
"github.com/luxfi/zapdb/v4/y"
|
||||
"github.com/luxfi/zapdb"
|
||||
"github.com/luxfi/zapdb/options"
|
||||
"github.com/luxfi/zapdb/table"
|
||||
"github.com/luxfi/zapdb/y"
|
||||
)
|
||||
|
||||
type flagOptions struct {
|
||||
|
||||
@@ -15,10 +15,10 @@ import (
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"github.com/luxfi/zapdb/v4"
|
||||
"github.com/luxfi/zapdb/v4/options"
|
||||
"github.com/luxfi/zapdb/v4/table"
|
||||
"github.com/luxfi/zapdb/v4/y"
|
||||
"github.com/luxfi/zapdb"
|
||||
"github.com/luxfi/zapdb/options"
|
||||
"github.com/luxfi/zapdb/table"
|
||||
"github.com/luxfi/zapdb/y"
|
||||
)
|
||||
|
||||
var pickBenchCmd = &cobra.Command{
|
||||
|
||||
@@ -17,9 +17,9 @@ import (
|
||||
humanize "github.com/dustin/go-humanize"
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"github.com/luxfi/zapdb/v4"
|
||||
"github.com/luxfi/zapdb/v4/pb"
|
||||
"github.com/luxfi/zapdb/v4/y"
|
||||
"github.com/luxfi/zapdb"
|
||||
"github.com/luxfi/zapdb/pb"
|
||||
"github.com/luxfi/zapdb/y"
|
||||
"github.com/dgraph-io/ristretto/v2/z"
|
||||
)
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ import (
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"github.com/luxfi/zapdb/v4"
|
||||
"github.com/luxfi/zapdb"
|
||||
)
|
||||
|
||||
var restoreFile string
|
||||
|
||||
@@ -12,7 +12,7 @@ import (
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"github.com/luxfi/zapdb/v4"
|
||||
"github.com/luxfi/zapdb"
|
||||
)
|
||||
|
||||
var oldKeyPath string
|
||||
|
||||
@@ -12,8 +12,8 @@ import (
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/luxfi/zapdb/v4"
|
||||
"github.com/luxfi/zapdb/v4/y"
|
||||
"github.com/luxfi/zapdb"
|
||||
"github.com/luxfi/zapdb/y"
|
||||
)
|
||||
|
||||
func TestRotate(t *testing.T) {
|
||||
|
||||
@@ -14,9 +14,9 @@ import (
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"github.com/luxfi/zapdb/v4"
|
||||
"github.com/luxfi/zapdb/v4/options"
|
||||
"github.com/luxfi/zapdb/v4/y"
|
||||
"github.com/luxfi/zapdb"
|
||||
"github.com/luxfi/zapdb/options"
|
||||
"github.com/luxfi/zapdb/y"
|
||||
)
|
||||
|
||||
var streamCmd = &cobra.Command{
|
||||
|
||||
@@ -21,10 +21,10 @@ import (
|
||||
humanize "github.com/dustin/go-humanize"
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"github.com/luxfi/zapdb/v4"
|
||||
"github.com/luxfi/zapdb/v4/options"
|
||||
"github.com/luxfi/zapdb/v4/pb"
|
||||
"github.com/luxfi/zapdb/v4/y"
|
||||
"github.com/luxfi/zapdb"
|
||||
"github.com/luxfi/zapdb/options"
|
||||
"github.com/luxfi/zapdb/pb"
|
||||
"github.com/luxfi/zapdb/y"
|
||||
"github.com/dgraph-io/ristretto/v2/z"
|
||||
)
|
||||
|
||||
|
||||
+1
-1
@@ -14,7 +14,7 @@ import (
|
||||
"github.com/dustin/go-humanize"
|
||||
"go.opentelemetry.io/contrib/zpages"
|
||||
|
||||
"github.com/luxfi/zapdb/v4/badger/cmd"
|
||||
"github.com/luxfi/zapdb/badger/cmd"
|
||||
"github.com/dgraph-io/ristretto/v2/z"
|
||||
)
|
||||
|
||||
|
||||
@@ -11,8 +11,8 @@ import (
|
||||
"sync"
|
||||
"sync/atomic"
|
||||
|
||||
"github.com/luxfi/zapdb/v4/pb"
|
||||
"github.com/luxfi/zapdb/v4/y"
|
||||
"github.com/luxfi/zapdb/pb"
|
||||
"github.com/luxfi/zapdb/y"
|
||||
"github.com/dgraph-io/ristretto/v2/z"
|
||||
)
|
||||
|
||||
|
||||
+1
-1
@@ -13,7 +13,7 @@ import (
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/luxfi/zapdb/v4/y"
|
||||
"github.com/luxfi/zapdb/y"
|
||||
)
|
||||
|
||||
func TestWriteBatch(t *testing.T) {
|
||||
|
||||
@@ -22,7 +22,7 @@ import (
|
||||
"sync/atomic"
|
||||
"unsafe"
|
||||
|
||||
badger "github.com/luxfi/zapdb/v4"
|
||||
badger "github.com/luxfi/zapdb"
|
||||
)
|
||||
|
||||
// ═══════════════════════════════════════════════════════════════════════
|
||||
|
||||
+2
-2
@@ -12,8 +12,8 @@ import (
|
||||
"math"
|
||||
"sync"
|
||||
|
||||
"github.com/luxfi/zapdb/v4/table"
|
||||
"github.com/luxfi/zapdb/v4/y"
|
||||
"github.com/luxfi/zapdb/table"
|
||||
"github.com/luxfi/zapdb/y"
|
||||
)
|
||||
|
||||
type keyRange struct {
|
||||
|
||||
@@ -23,12 +23,12 @@ import (
|
||||
|
||||
humanize "github.com/dustin/go-humanize"
|
||||
|
||||
"github.com/luxfi/zapdb/v4/fb"
|
||||
"github.com/luxfi/zapdb/v4/options"
|
||||
"github.com/luxfi/zapdb/v4/pb"
|
||||
"github.com/luxfi/zapdb/v4/skl"
|
||||
"github.com/luxfi/zapdb/v4/table"
|
||||
"github.com/luxfi/zapdb/v4/y"
|
||||
"github.com/luxfi/zapdb/fb"
|
||||
"github.com/luxfi/zapdb/options"
|
||||
"github.com/luxfi/zapdb/pb"
|
||||
"github.com/luxfi/zapdb/skl"
|
||||
"github.com/luxfi/zapdb/table"
|
||||
"github.com/luxfi/zapdb/y"
|
||||
"github.com/dgraph-io/ristretto/v2"
|
||||
"github.com/dgraph-io/ristretto/v2/z"
|
||||
)
|
||||
|
||||
+4
-4
@@ -24,10 +24,10 @@ import (
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/luxfi/zapdb/v4/options"
|
||||
"github.com/luxfi/zapdb/v4/pb"
|
||||
"github.com/luxfi/zapdb/v4/table"
|
||||
"github.com/luxfi/zapdb/v4/y"
|
||||
"github.com/luxfi/zapdb/options"
|
||||
"github.com/luxfi/zapdb/pb"
|
||||
"github.com/luxfi/zapdb/table"
|
||||
"github.com/luxfi/zapdb/y"
|
||||
"github.com/dgraph-io/ristretto/v2/z"
|
||||
)
|
||||
|
||||
|
||||
+3
-3
@@ -23,9 +23,9 @@ import (
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/luxfi/zapdb/v4/options"
|
||||
"github.com/luxfi/zapdb/v4/pb"
|
||||
"github.com/luxfi/zapdb/v4/y"
|
||||
"github.com/luxfi/zapdb/options"
|
||||
"github.com/luxfi/zapdb/pb"
|
||||
"github.com/luxfi/zapdb/y"
|
||||
"github.com/dgraph-io/ristretto/v2/z"
|
||||
)
|
||||
|
||||
|
||||
+1
-1
@@ -17,7 +17,7 @@ import (
|
||||
|
||||
"golang.org/x/sys/unix"
|
||||
|
||||
"github.com/luxfi/zapdb/v4/y"
|
||||
"github.com/luxfi/zapdb/y"
|
||||
)
|
||||
|
||||
// AIX flock locks files, not descriptors. So, multiple descriptors cannot
|
||||
|
||||
+1
-1
@@ -13,7 +13,7 @@ import (
|
||||
"os"
|
||||
"path/filepath"
|
||||
|
||||
"github.com/luxfi/zapdb/v4/y"
|
||||
"github.com/luxfi/zapdb/y"
|
||||
)
|
||||
|
||||
// directoryLockGuard holds a lock on a directory and a pid file inside. The pid file isn't part
|
||||
|
||||
+1
-1
@@ -11,7 +11,7 @@ import (
|
||||
"path/filepath"
|
||||
"strings"
|
||||
|
||||
"github.com/luxfi/zapdb/v4/y"
|
||||
"github.com/luxfi/zapdb/y"
|
||||
)
|
||||
|
||||
// directoryLockGuard holds a lock on a directory and a pid file inside. The pid file isn't part
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@ import (
|
||||
|
||||
"golang.org/x/sys/unix"
|
||||
|
||||
"github.com/luxfi/zapdb/v4/y"
|
||||
"github.com/luxfi/zapdb/y"
|
||||
)
|
||||
|
||||
// directoryLockGuard holds a lock on a directory and a pid file inside. The pid file isn't part
|
||||
|
||||
+1
-1
@@ -14,7 +14,7 @@ import (
|
||||
"path/filepath"
|
||||
"syscall"
|
||||
|
||||
"github.com/luxfi/zapdb/v4/y"
|
||||
"github.com/luxfi/zapdb/y"
|
||||
)
|
||||
|
||||
// FILE_ATTRIBUTE_TEMPORARY - A file that is being used for temporary storage.
|
||||
|
||||
+1
-1
@@ -12,7 +12,7 @@ import (
|
||||
"sort"
|
||||
"sync"
|
||||
|
||||
"github.com/luxfi/zapdb/v4/y"
|
||||
"github.com/luxfi/zapdb/y"
|
||||
"github.com/dgraph-io/ristretto/v2/z"
|
||||
)
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
module github.com/luxfi/zapdb/v4
|
||||
module github.com/luxfi/zapdb
|
||||
|
||||
go 1.26.1
|
||||
|
||||
@@ -46,6 +46,4 @@ require (
|
||||
gopkg.in/yaml.v3 v3.0.1 // indirect
|
||||
)
|
||||
|
||||
retract v4.0.0 // see #1888 and #1889
|
||||
|
||||
retract v4.3.0 // see #2113 and #2121
|
||||
|
||||
@@ -17,8 +17,8 @@ import (
|
||||
"sync/atomic"
|
||||
"time"
|
||||
|
||||
"github.com/luxfi/zapdb/v4"
|
||||
"github.com/luxfi/zapdb/v4/y"
|
||||
"github.com/luxfi/zapdb"
|
||||
"github.com/luxfi/zapdb/y"
|
||||
"github.com/dgraph-io/ristretto/v2/z"
|
||||
)
|
||||
|
||||
|
||||
+2
-2
@@ -14,8 +14,8 @@ import (
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/luxfi/zapdb/v4/table"
|
||||
"github.com/luxfi/zapdb/v4/y"
|
||||
"github.com/luxfi/zapdb/table"
|
||||
"github.com/luxfi/zapdb/y"
|
||||
"github.com/dgraph-io/ristretto/v2/z"
|
||||
)
|
||||
|
||||
|
||||
+3
-3
@@ -17,9 +17,9 @@ import (
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/luxfi/zapdb/v4/options"
|
||||
"github.com/luxfi/zapdb/v4/table"
|
||||
"github.com/luxfi/zapdb/v4/y"
|
||||
"github.com/luxfi/zapdb/options"
|
||||
"github.com/luxfi/zapdb/table"
|
||||
"github.com/luxfi/zapdb/y"
|
||||
)
|
||||
|
||||
type tableMock struct {
|
||||
|
||||
+2
-2
@@ -17,8 +17,8 @@ import (
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/luxfi/zapdb/v4/pb"
|
||||
"github.com/luxfi/zapdb/v4/y"
|
||||
"github.com/luxfi/zapdb/pb"
|
||||
"github.com/luxfi/zapdb/y"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
+2
-2
@@ -10,8 +10,8 @@ import (
|
||||
"sort"
|
||||
"sync"
|
||||
|
||||
"github.com/luxfi/zapdb/v4/table"
|
||||
"github.com/luxfi/zapdb/v4/y"
|
||||
"github.com/luxfi/zapdb/table"
|
||||
"github.com/luxfi/zapdb/y"
|
||||
)
|
||||
|
||||
type levelHandler struct {
|
||||
|
||||
@@ -23,9 +23,9 @@ import (
|
||||
"go.opentelemetry.io/otel"
|
||||
"go.opentelemetry.io/otel/attribute"
|
||||
|
||||
"github.com/luxfi/zapdb/v4/pb"
|
||||
"github.com/luxfi/zapdb/v4/table"
|
||||
"github.com/luxfi/zapdb/v4/y"
|
||||
"github.com/luxfi/zapdb/pb"
|
||||
"github.com/luxfi/zapdb/table"
|
||||
"github.com/luxfi/zapdb/y"
|
||||
"github.com/dgraph-io/ristretto/v2/z"
|
||||
)
|
||||
|
||||
|
||||
+4
-4
@@ -16,10 +16,10 @@ import (
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/luxfi/zapdb/v4/options"
|
||||
"github.com/luxfi/zapdb/v4/pb"
|
||||
"github.com/luxfi/zapdb/v4/table"
|
||||
"github.com/luxfi/zapdb/v4/y"
|
||||
"github.com/luxfi/zapdb/options"
|
||||
"github.com/luxfi/zapdb/pb"
|
||||
"github.com/luxfi/zapdb/table"
|
||||
"github.com/luxfi/zapdb/y"
|
||||
)
|
||||
|
||||
// createAndOpen creates a table with the given data and adds it to the given level.
|
||||
|
||||
+1
-1
@@ -18,7 +18,7 @@ import (
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/luxfi/zapdb/v4/y"
|
||||
"github.com/luxfi/zapdb/y"
|
||||
"github.com/dgraph-io/ristretto/v2/z"
|
||||
)
|
||||
|
||||
|
||||
+3
-3
@@ -18,9 +18,9 @@ import (
|
||||
"path/filepath"
|
||||
"sync"
|
||||
|
||||
"github.com/luxfi/zapdb/v4/options"
|
||||
"github.com/luxfi/zapdb/v4/pb"
|
||||
"github.com/luxfi/zapdb/v4/y"
|
||||
"github.com/luxfi/zapdb/options"
|
||||
"github.com/luxfi/zapdb/pb"
|
||||
"github.com/luxfi/zapdb/y"
|
||||
)
|
||||
|
||||
// Manifest represents the contents of the MANIFEST file in a Badger store.
|
||||
|
||||
+4
-4
@@ -17,10 +17,10 @@ import (
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/luxfi/zapdb/v4/options"
|
||||
"github.com/luxfi/zapdb/v4/pb"
|
||||
"github.com/luxfi/zapdb/v4/table"
|
||||
"github.com/luxfi/zapdb/v4/y"
|
||||
"github.com/luxfi/zapdb/options"
|
||||
"github.com/luxfi/zapdb/pb"
|
||||
"github.com/luxfi/zapdb/table"
|
||||
"github.com/luxfi/zapdb/y"
|
||||
)
|
||||
|
||||
func TestManifestBasic(t *testing.T) {
|
||||
|
||||
+3
-3
@@ -22,9 +22,9 @@ import (
|
||||
"sync"
|
||||
"sync/atomic"
|
||||
|
||||
"github.com/luxfi/zapdb/v4/pb"
|
||||
"github.com/luxfi/zapdb/v4/skl"
|
||||
"github.com/luxfi/zapdb/v4/y"
|
||||
"github.com/luxfi/zapdb/pb"
|
||||
"github.com/luxfi/zapdb/skl"
|
||||
"github.com/luxfi/zapdb/y"
|
||||
"github.com/dgraph-io/ristretto/v2/z"
|
||||
)
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ import (
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/luxfi/zapdb/v4/y"
|
||||
"github.com/luxfi/zapdb/y"
|
||||
"github.com/dgraph-io/ristretto/v2/z"
|
||||
)
|
||||
|
||||
|
||||
+3
-3
@@ -13,9 +13,9 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/luxfi/zapdb/v4/options"
|
||||
"github.com/luxfi/zapdb/v4/table"
|
||||
"github.com/luxfi/zapdb/v4/y"
|
||||
"github.com/luxfi/zapdb/options"
|
||||
"github.com/luxfi/zapdb/table"
|
||||
"github.com/luxfi/zapdb/y"
|
||||
"github.com/dgraph-io/ristretto/v2/z"
|
||||
)
|
||||
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@ import (
|
||||
"reflect"
|
||||
"testing"
|
||||
|
||||
"github.com/luxfi/zapdb/v4/options"
|
||||
"github.com/luxfi/zapdb/options"
|
||||
)
|
||||
|
||||
func TestOptions(t *testing.T) {
|
||||
|
||||
+3
-3
@@ -9,9 +9,9 @@ import (
|
||||
"sync"
|
||||
"sync/atomic"
|
||||
|
||||
"github.com/luxfi/zapdb/v4/pb"
|
||||
"github.com/luxfi/zapdb/v4/trie"
|
||||
"github.com/luxfi/zapdb/v4/y"
|
||||
"github.com/luxfi/zapdb/pb"
|
||||
"github.com/luxfi/zapdb/trie"
|
||||
"github.com/luxfi/zapdb/y"
|
||||
"github.com/dgraph-io/ristretto/v2/z"
|
||||
)
|
||||
|
||||
|
||||
+1
-1
@@ -16,7 +16,7 @@ import (
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/luxfi/zapdb/v4/pb"
|
||||
"github.com/luxfi/zapdb/pb"
|
||||
)
|
||||
|
||||
// This test will result in deadlock for commits before this.
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@ import (
|
||||
"sync/atomic"
|
||||
"unsafe"
|
||||
|
||||
"github.com/luxfi/zapdb/v4/y"
|
||||
"github.com/luxfi/zapdb/y"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
+1
-1
@@ -26,7 +26,7 @@ import (
|
||||
"sync/atomic"
|
||||
"unsafe"
|
||||
|
||||
"github.com/luxfi/zapdb/v4/y"
|
||||
"github.com/luxfi/zapdb/y"
|
||||
"github.com/dgraph-io/ristretto/v2/z"
|
||||
)
|
||||
|
||||
|
||||
+1
-1
@@ -17,7 +17,7 @@ import (
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/luxfi/zapdb/v4/y"
|
||||
"github.com/luxfi/zapdb/y"
|
||||
)
|
||||
|
||||
const arenaSize = 1 << 20
|
||||
|
||||
@@ -15,8 +15,8 @@ import (
|
||||
|
||||
humanize "github.com/dustin/go-humanize"
|
||||
|
||||
"github.com/luxfi/zapdb/v4/pb"
|
||||
"github.com/luxfi/zapdb/v4/y"
|
||||
"github.com/luxfi/zapdb/pb"
|
||||
"github.com/luxfi/zapdb/y"
|
||||
"github.com/dgraph-io/ristretto/v2/z"
|
||||
)
|
||||
|
||||
|
||||
+2
-2
@@ -16,8 +16,8 @@ import (
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
bpb "github.com/luxfi/zapdb/v4/pb"
|
||||
"github.com/luxfi/zapdb/v4/y"
|
||||
bpb "github.com/luxfi/zapdb/pb"
|
||||
"github.com/luxfi/zapdb/y"
|
||||
"github.com/dgraph-io/ristretto/v2/z"
|
||||
)
|
||||
|
||||
|
||||
+3
-3
@@ -12,9 +12,9 @@ import (
|
||||
|
||||
"github.com/dustin/go-humanize"
|
||||
|
||||
"github.com/luxfi/zapdb/v4/pb"
|
||||
"github.com/luxfi/zapdb/v4/table"
|
||||
"github.com/luxfi/zapdb/v4/y"
|
||||
"github.com/luxfi/zapdb/pb"
|
||||
"github.com/luxfi/zapdb/table"
|
||||
"github.com/luxfi/zapdb/y"
|
||||
"github.com/dgraph-io/ristretto/v2/z"
|
||||
)
|
||||
|
||||
|
||||
@@ -16,8 +16,8 @@ import (
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/luxfi/zapdb/v4/pb"
|
||||
"github.com/luxfi/zapdb/v4/y"
|
||||
"github.com/luxfi/zapdb/pb"
|
||||
"github.com/luxfi/zapdb/y"
|
||||
"github.com/dgraph-io/ristretto/v2/z"
|
||||
)
|
||||
|
||||
|
||||
+4
-4
@@ -17,10 +17,10 @@ import (
|
||||
fbs "github.com/google/flatbuffers/go"
|
||||
"github.com/klauspost/compress/s2"
|
||||
|
||||
"github.com/luxfi/zapdb/v4/fb"
|
||||
"github.com/luxfi/zapdb/v4/options"
|
||||
"github.com/luxfi/zapdb/v4/pb"
|
||||
"github.com/luxfi/zapdb/v4/y"
|
||||
"github.com/luxfi/zapdb/fb"
|
||||
"github.com/luxfi/zapdb/options"
|
||||
"github.com/luxfi/zapdb/pb"
|
||||
"github.com/luxfi/zapdb/y"
|
||||
"github.com/dgraph-io/ristretto/v2/z"
|
||||
)
|
||||
|
||||
|
||||
@@ -14,10 +14,10 @@ import (
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/luxfi/zapdb/v4/fb"
|
||||
"github.com/luxfi/zapdb/v4/options"
|
||||
"github.com/luxfi/zapdb/v4/pb"
|
||||
"github.com/luxfi/zapdb/v4/y"
|
||||
"github.com/luxfi/zapdb/fb"
|
||||
"github.com/luxfi/zapdb/options"
|
||||
"github.com/luxfi/zapdb/pb"
|
||||
"github.com/luxfi/zapdb/y"
|
||||
"github.com/dgraph-io/ristretto/v2"
|
||||
)
|
||||
|
||||
|
||||
+2
-2
@@ -11,8 +11,8 @@ import (
|
||||
"io"
|
||||
"sort"
|
||||
|
||||
"github.com/luxfi/zapdb/v4/fb"
|
||||
"github.com/luxfi/zapdb/v4/y"
|
||||
"github.com/luxfi/zapdb/fb"
|
||||
"github.com/luxfi/zapdb/y"
|
||||
)
|
||||
|
||||
type blockIterator struct {
|
||||
|
||||
@@ -8,7 +8,7 @@ package table
|
||||
import (
|
||||
"bytes"
|
||||
|
||||
"github.com/luxfi/zapdb/v4/y"
|
||||
"github.com/luxfi/zapdb/y"
|
||||
)
|
||||
|
||||
// MergeIterator merges multiple iterators.
|
||||
|
||||
@@ -11,7 +11,7 @@ import (
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/luxfi/zapdb/v4/y"
|
||||
"github.com/luxfi/zapdb/y"
|
||||
)
|
||||
|
||||
type SimpleIterator struct {
|
||||
|
||||
+4
-4
@@ -24,10 +24,10 @@ import (
|
||||
"github.com/klauspost/compress/snappy"
|
||||
"github.com/klauspost/compress/zstd"
|
||||
|
||||
"github.com/luxfi/zapdb/v4/fb"
|
||||
"github.com/luxfi/zapdb/v4/options"
|
||||
"github.com/luxfi/zapdb/v4/pb"
|
||||
"github.com/luxfi/zapdb/v4/y"
|
||||
"github.com/luxfi/zapdb/fb"
|
||||
"github.com/luxfi/zapdb/options"
|
||||
"github.com/luxfi/zapdb/pb"
|
||||
"github.com/luxfi/zapdb/y"
|
||||
"github.com/dgraph-io/ristretto/v2"
|
||||
"github.com/dgraph-io/ristretto/v2/z"
|
||||
)
|
||||
|
||||
+2
-2
@@ -21,8 +21,8 @@ import (
|
||||
"github.com/cespare/xxhash/v2"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/luxfi/zapdb/v4/options"
|
||||
"github.com/luxfi/zapdb/v4/y"
|
||||
"github.com/luxfi/zapdb/options"
|
||||
"github.com/luxfi/zapdb/y"
|
||||
"github.com/dgraph-io/ristretto/v2"
|
||||
)
|
||||
|
||||
|
||||
+2
-2
@@ -10,8 +10,8 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/luxfi/zapdb/v4/pb"
|
||||
"github.com/luxfi/zapdb/v4/y"
|
||||
"github.com/luxfi/zapdb/pb"
|
||||
"github.com/luxfi/zapdb/y"
|
||||
)
|
||||
|
||||
type node struct {
|
||||
|
||||
+1
-1
@@ -11,7 +11,7 @@ import (
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/luxfi/zapdb/v4/pb"
|
||||
"github.com/luxfi/zapdb/pb"
|
||||
)
|
||||
|
||||
func TestGet(t *testing.T) {
|
||||
|
||||
@@ -17,7 +17,7 @@ import (
|
||||
"sync"
|
||||
"sync/atomic"
|
||||
|
||||
"github.com/luxfi/zapdb/v4/y"
|
||||
"github.com/luxfi/zapdb/y"
|
||||
"github.com/dgraph-io/ristretto/v2/z"
|
||||
)
|
||||
|
||||
|
||||
+1
-1
@@ -17,7 +17,7 @@ import (
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/luxfi/zapdb/v4/y"
|
||||
"github.com/luxfi/zapdb/y"
|
||||
"github.com/dgraph-io/ristretto/v2/z"
|
||||
)
|
||||
|
||||
|
||||
@@ -12,8 +12,8 @@ import (
|
||||
"os"
|
||||
"time"
|
||||
|
||||
"github.com/luxfi/zapdb/v4/table"
|
||||
"github.com/luxfi/zapdb/v4/y"
|
||||
"github.com/luxfi/zapdb/table"
|
||||
"github.com/luxfi/zapdb/y"
|
||||
)
|
||||
|
||||
func (s *levelsController) validate() error {
|
||||
|
||||
@@ -24,7 +24,7 @@ import (
|
||||
"go.opentelemetry.io/otel"
|
||||
"go.opentelemetry.io/otel/attribute"
|
||||
|
||||
"github.com/luxfi/zapdb/v4/y"
|
||||
"github.com/luxfi/zapdb/y"
|
||||
"github.com/dgraph-io/ristretto/v2/z"
|
||||
)
|
||||
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@ import (
|
||||
humanize "github.com/dustin/go-humanize"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/luxfi/zapdb/v4/y"
|
||||
"github.com/luxfi/zapdb/y"
|
||||
)
|
||||
|
||||
func TestDynamicValueThreshold(t *testing.T) {
|
||||
|
||||
+1
-1
@@ -11,7 +11,7 @@ import (
|
||||
|
||||
"github.com/cespare/xxhash/v2"
|
||||
|
||||
"github.com/luxfi/zapdb/v4/pb"
|
||||
"github.com/luxfi/zapdb/pb"
|
||||
)
|
||||
|
||||
// ErrChecksumMismatch is returned at checksum mismatch.
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ import (
|
||||
"testing"
|
||||
|
||||
"github.com/cespare/xxhash/v2"
|
||||
"github.com/luxfi/zapdb/v4/pb"
|
||||
"github.com/luxfi/zapdb/pb"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ import (
|
||||
"time"
|
||||
"unsafe"
|
||||
|
||||
"github.com/luxfi/zapdb/v4/pb"
|
||||
"github.com/luxfi/zapdb/pb"
|
||||
"github.com/dgraph-io/ristretto/v2/z"
|
||||
)
|
||||
|
||||
|
||||
+1
-1
@@ -16,7 +16,7 @@ import (
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/luxfi/zapdb/v4/pb"
|
||||
"github.com/luxfi/zapdb/pb"
|
||||
"github.com/dgraph-io/ristretto/v2/z"
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user