mirror of
https://github.com/asdine/storm.git
synced 2025-09-27 03:06:16 +08:00
Updated bbolt import path
This commit is contained in:
@@ -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.
|
||||||
|
@@ -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() {
|
||||||
|
@@ -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
|
||||||
|
@@ -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.
|
||||||
|
@@ -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"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@@ -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
|
||||||
|
@@ -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"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@@ -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
|
||||||
|
@@ -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"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@@ -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
2
kv.go
@@ -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
|
||||||
|
@@ -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"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@@ -3,7 +3,7 @@ package storm
|
|||||||
import (
|
import (
|
||||||
"reflect"
|
"reflect"
|
||||||
|
|
||||||
"github.com/coreos/bbolt"
|
bolt "go.etcd.io/bbolt"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
2
node.go
2
node.go
@@ -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.
|
||||||
|
@@ -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"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@@ -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.
|
||||||
|
2
query.go
2
query.go
@@ -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.
|
||||||
|
2
scan.go
2
scan.go
@@ -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
|
||||||
|
2
sink.go
2
sink.go
@@ -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 {
|
||||||
|
2
store.go
2
store.go
@@ -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.
|
||||||
|
@@ -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"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
2
storm.go
2
storm.go
@@ -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 (
|
||||||
|
@@ -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"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@@ -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 {
|
||||||
|
Reference in New Issue
Block a user