Updated bbolt import path

This commit is contained in:
yamamushi
2018-08-28 19:38:54 -05:00
parent bda68dab90
commit d01b698d5a
24 changed files with 24 additions and 24 deletions

View File

@@ -1,6 +1,6 @@
package storm package storm
import "github.com/coreos/bbolt" import bolt "go.etcd.io/bbolt"
// CreateBucketIfNotExists creates the bucket below the current node if it doesn't // CreateBucketIfNotExists creates the bucket below the current node if it doesn't
// already exist. // already exist.

View File

@@ -11,7 +11,7 @@ import (
"github.com/asdine/storm" "github.com/asdine/storm"
"github.com/asdine/storm/codec/gob" "github.com/asdine/storm/codec/gob"
"github.com/coreos/bbolt" bolt "go.etcd.io/bbolt"
) )
func ExampleDB_Save() { func ExampleDB_Save() {

View File

@@ -7,7 +7,7 @@ import (
"strings" "strings"
"github.com/asdine/storm/index" "github.com/asdine/storm/index"
"github.com/coreos/bbolt" bolt "go.etcd.io/bbolt"
) )
// Storm tags // Storm tags

View File

@@ -6,7 +6,7 @@ import (
"github.com/asdine/storm/index" "github.com/asdine/storm/index"
"github.com/asdine/storm/q" "github.com/asdine/storm/q"
"github.com/coreos/bbolt" bolt "go.etcd.io/bbolt"
) )
// A Finder can fetch types from BoltDB. // A Finder can fetch types from BoltDB.

View File

@@ -8,7 +8,7 @@ import (
"testing" "testing"
"time" "time"
"github.com/coreos/bbolt" bolt "go.etcd.io/bbolt"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

View File

@@ -4,7 +4,7 @@ import (
"bytes" "bytes"
"github.com/asdine/storm/internal" "github.com/asdine/storm/internal"
"github.com/coreos/bbolt" bolt "go.etcd.io/bbolt"
) )
// NewListIndex loads a ListIndex // NewListIndex loads a ListIndex

View File

@@ -11,7 +11,7 @@ import (
"github.com/asdine/storm" "github.com/asdine/storm"
"github.com/asdine/storm/codec/gob" "github.com/asdine/storm/codec/gob"
"github.com/asdine/storm/index" "github.com/asdine/storm/index"
"github.com/coreos/bbolt" bolt "go.etcd.io/bbolt"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

View File

@@ -4,7 +4,7 @@ import (
"bytes" "bytes"
"github.com/asdine/storm/internal" "github.com/asdine/storm/internal"
"github.com/coreos/bbolt" bolt "go.etcd.io/bbolt"
) )
// NewUniqueIndex loads a UniqueIndex // NewUniqueIndex loads a UniqueIndex

View File

@@ -10,7 +10,7 @@ import (
"github.com/asdine/storm" "github.com/asdine/storm"
"github.com/asdine/storm/codec/gob" "github.com/asdine/storm/codec/gob"
"github.com/asdine/storm/index" "github.com/asdine/storm/index"
"github.com/coreos/bbolt" bolt "go.etcd.io/bbolt"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

View File

@@ -3,7 +3,7 @@ package internal
import ( import (
"bytes" "bytes"
"github.com/coreos/bbolt" bolt "go.etcd.io/bbolt"
) )
// Cursor that can be reversed // Cursor that can be reversed

2
kv.go
View File

@@ -3,7 +3,7 @@ package storm
import ( import (
"reflect" "reflect"
"github.com/coreos/bbolt" bolt "go.etcd.io/bbolt"
) )
// KeyValueStore can store and fetch values by key // KeyValueStore can store and fetch values by key

View File

@@ -7,7 +7,7 @@ import (
"github.com/asdine/storm/codec/gob" "github.com/asdine/storm/codec/gob"
"github.com/asdine/storm/codec/json" "github.com/asdine/storm/codec/json"
"github.com/coreos/bbolt" bolt "go.etcd.io/bbolt"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

View File

@@ -3,7 +3,7 @@ package storm
import ( import (
"reflect" "reflect"
"github.com/coreos/bbolt" bolt "go.etcd.io/bbolt"
) )
const ( const (

View File

@@ -2,7 +2,7 @@ package storm
import ( import (
"github.com/asdine/storm/codec" "github.com/asdine/storm/codec"
"github.com/coreos/bbolt" bolt "go.etcd.io/bbolt"
) )
// A Node in Storm represents the API to a BoltDB bucket. // A Node in Storm represents the API to a BoltDB bucket.

View File

@@ -5,7 +5,7 @@ import (
"github.com/asdine/storm/codec/gob" "github.com/asdine/storm/codec/gob"
"github.com/asdine/storm/codec/json" "github.com/asdine/storm/codec/json"
"github.com/coreos/bbolt" bolt "go.etcd.io/bbolt"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

View File

@@ -5,7 +5,7 @@ import (
"github.com/asdine/storm/codec" "github.com/asdine/storm/codec"
"github.com/asdine/storm/index" "github.com/asdine/storm/index"
"github.com/coreos/bbolt" bolt "go.etcd.io/bbolt"
) )
// BoltOptions used to pass options to BoltDB. // BoltOptions used to pass options to BoltDB.

View File

@@ -3,7 +3,7 @@ package storm
import ( import (
"github.com/asdine/storm/internal" "github.com/asdine/storm/internal"
"github.com/asdine/storm/q" "github.com/asdine/storm/q"
"github.com/coreos/bbolt" bolt "go.etcd.io/bbolt"
) )
// Select a list of records that match a list of matchers. Doesn't use indexes. // Select a list of records that match a list of matchers. Doesn't use indexes.

View File

@@ -3,7 +3,7 @@ package storm
import ( import (
"bytes" "bytes"
"github.com/coreos/bbolt" bolt "go.etcd.io/bbolt"
) )
// A BucketScanner scans a Node for a list of buckets // A BucketScanner scans a Node for a list of buckets

View File

@@ -6,7 +6,7 @@ import (
"github.com/asdine/storm/index" "github.com/asdine/storm/index"
"github.com/asdine/storm/q" "github.com/asdine/storm/q"
"github.com/coreos/bbolt" bolt "go.etcd.io/bbolt"
) )
type item struct { type item struct {

View File

@@ -6,7 +6,7 @@ import (
"github.com/asdine/storm/index" "github.com/asdine/storm/index"
"github.com/asdine/storm/q" "github.com/asdine/storm/q"
"github.com/coreos/bbolt" bolt "go.etcd.io/bbolt"
) )
// TypeStore stores user defined types in BoltDB. // TypeStore stores user defined types in BoltDB.

View File

@@ -9,7 +9,7 @@ import (
"github.com/asdine/storm/codec/gob" "github.com/asdine/storm/codec/gob"
"github.com/asdine/storm/codec/json" "github.com/asdine/storm/codec/json"
"github.com/asdine/storm/q" "github.com/asdine/storm/q"
"github.com/coreos/bbolt" bolt "go.etcd.io/bbolt"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

View File

@@ -7,7 +7,7 @@ import (
"github.com/asdine/storm/codec" "github.com/asdine/storm/codec"
"github.com/asdine/storm/codec/json" "github.com/asdine/storm/codec/json"
"github.com/coreos/bbolt" bolt "go.etcd.io/bbolt"
) )
const ( const (

View File

@@ -12,7 +12,7 @@ import (
"time" "time"
"github.com/asdine/storm/codec/json" "github.com/asdine/storm/codec/json"
"github.com/coreos/bbolt" bolt "go.etcd.io/bbolt"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

View File

@@ -1,6 +1,6 @@
package storm package storm
import "github.com/coreos/bbolt" import bolt "go.etcd.io/bbolt"
// Tx is a transaction. // Tx is a transaction.
type Tx interface { type Tx interface {