diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c312a57..bc2d12a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,10 +11,10 @@ jobs: runs-on: ubuntu-latest steps: - - name: Set up Go 1.13 + - name: Set up Go 1.21 uses: actions/setup-go@v1 with: - go-version: 1.13 + go-version: '1.21' id: go - name: Check out code into the Go module directory diff --git a/README.md b/README.md index 2dae5e4..2314b5f 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Rainstorm -[![GoDoc](https://godoc.org/github.com/AndersonBargas/rainstorm?status.svg)](https://pkg.go.dev/github.com/AndersonBargas/rainstorm/v4?tab=doc) [![Go Report Card](https://goreportcard.com/badge/github.com/AndersonBargas/rainstorm)](https://goreportcard.com/report/github.com/AndersonBargas/rainstorm) ![GoLang](https://github.com/AndersonBargas/rainstorm/workflows/GoLang/badge.svg) +[![GoDoc](https://godoc.org/github.com/AndersonBargas/rainstorm?status.svg)](https://pkg.go.dev/github.com/AndersonBargas/rainstorm/v5?tab=doc) [![Go Report Card](https://goreportcard.com/badge/github.com/AndersonBargas/rainstorm)](https://goreportcard.com/report/github.com/AndersonBargas/rainstorm) ![GoLang](https://github.com/AndersonBargas/rainstorm/workflows/GoLang/badge.svg) Rainstorm is a simple and powerful toolkit for [BoltDB](https://github.com/coreos/bbolt), forked from the great [Storm](https://github.com/asdine/storm). Basically, Rainstorm provides indexes, a wide range of methods to store and fetch data, an advanced query system, and much more. @@ -49,7 +49,7 @@ In addition to the examples below, see also the [examples in the GoDoc](https:// ## Getting Started ```bash -go get -u github.com/AndersonBargas/rainstorm/v4 +GO111MODULE=on go get -u github.com/AndersonBargas/rainstorm/v5 ``` ## Main differences from "storm" @@ -65,7 +65,7 @@ To take advantage of the performance changes made after the fork, just use versi ## Import Rainstorm ```go -import "github.com/AndersonBargas/rainstorm/v4" +import "github.com/AndersonBargas/rainstorm/v5" ``` ## Open a database @@ -487,12 +487,12 @@ These can be used by importing the relevant package and use that codec to config ```go import ( - "github.com/AndersonBargas/rainstorm/v4" - "github.com/AndersonBargas/rainstorm/v4/codec/gob" - "github.com/AndersonBargas/rainstorm/v4/codec/json" - "github.com/AndersonBargas/rainstorm/v4/codec/sereal" - "github.com/AndersonBargas/rainstorm/v4/codec/protobuf" - "github.com/AndersonBargas/rainstorm/v4/codec/msgpack" + "github.com/AndersonBargas/rainstorm/v5" + "github.com/AndersonBargas/rainstorm/v5/codec/gob" + "github.com/AndersonBargas/rainstorm/v5/codec/json" + "github.com/AndersonBargas/rainstorm/v5/codec/sereal" + "github.com/AndersonBargas/rainstorm/v5/codec/protobuf" + "github.com/AndersonBargas/rainstorm/v5/codec/msgpack" ) var gobDb, _ = rainstorm.Open("gob.db", rainstorm.Codec(gob.Codec)) diff --git a/codec/aes/aes.go b/codec/aes/aes.go index 2b075c6..252a881 100644 --- a/codec/aes/aes.go +++ b/codec/aes/aes.go @@ -7,7 +7,7 @@ import ( "fmt" "io" - "github.com/AndersonBargas/rainstorm/v4/codec" + "github.com/AndersonBargas/rainstorm/v5/codec" ) const name = "aes-" diff --git a/codec/aes/aes_test.go b/codec/aes/aes_test.go index e936b25..89cd0ad 100644 --- a/codec/aes/aes_test.go +++ b/codec/aes/aes_test.go @@ -6,8 +6,8 @@ import ( "github.com/stretchr/testify/require" - "github.com/AndersonBargas/rainstorm/v4/codec/internal" - "github.com/AndersonBargas/rainstorm/v4/codec/json" + "github.com/AndersonBargas/rainstorm/v5/codec/internal" + "github.com/AndersonBargas/rainstorm/v5/codec/json" ) var testKey, _ = base64.StdEncoding.DecodeString("xkBTXc1wn0C/aL31u9SA7g==") diff --git a/codec/example_test.go b/codec/example_test.go index 679058a..d55a688 100644 --- a/codec/example_test.go +++ b/codec/example_test.go @@ -3,12 +3,12 @@ package codec_test import ( "fmt" - "github.com/AndersonBargas/rainstorm/v4" - "github.com/AndersonBargas/rainstorm/v4/codec/gob" - "github.com/AndersonBargas/rainstorm/v4/codec/json" - "github.com/AndersonBargas/rainstorm/v4/codec/msgpack" - "github.com/AndersonBargas/rainstorm/v4/codec/protobuf" - "github.com/AndersonBargas/rainstorm/v4/codec/sereal" + "github.com/AndersonBargas/rainstorm/v5" + "github.com/AndersonBargas/rainstorm/v5/codec/gob" + "github.com/AndersonBargas/rainstorm/v5/codec/json" + "github.com/AndersonBargas/rainstorm/v5/codec/msgpack" + "github.com/AndersonBargas/rainstorm/v5/codec/protobuf" + "github.com/AndersonBargas/rainstorm/v5/codec/sereal" ) func Example() { diff --git a/codec/gob/gob_test.go b/codec/gob/gob_test.go index 9fe8c3b..9c26954 100644 --- a/codec/gob/gob_test.go +++ b/codec/gob/gob_test.go @@ -3,7 +3,7 @@ package gob import ( "testing" - "github.com/AndersonBargas/rainstorm/v4/codec/internal" + "github.com/AndersonBargas/rainstorm/v5/codec/internal" "github.com/stretchr/testify/require" ) diff --git a/codec/internal/test_helpers.go b/codec/internal/test_helpers.go index 00f8922..2c42a08 100644 --- a/codec/internal/test_helpers.go +++ b/codec/internal/test_helpers.go @@ -5,7 +5,7 @@ import ( "reflect" "testing" - "github.com/AndersonBargas/rainstorm/v4/codec" + "github.com/AndersonBargas/rainstorm/v5/codec" ) type testStruct struct { diff --git a/codec/json/json_test.go b/codec/json/json_test.go index 2f93b6e..cb5e232 100644 --- a/codec/json/json_test.go +++ b/codec/json/json_test.go @@ -3,7 +3,7 @@ package json import ( "testing" - "github.com/AndersonBargas/rainstorm/v4/codec/internal" + "github.com/AndersonBargas/rainstorm/v5/codec/internal" "github.com/stretchr/testify/require" ) diff --git a/codec/msgpack/msgpack_test.go b/codec/msgpack/msgpack_test.go index a8710df..98a3f81 100644 --- a/codec/msgpack/msgpack_test.go +++ b/codec/msgpack/msgpack_test.go @@ -3,7 +3,7 @@ package msgpack import ( "testing" - "github.com/AndersonBargas/rainstorm/v4/codec/internal" + "github.com/AndersonBargas/rainstorm/v5/codec/internal" "github.com/stretchr/testify/require" ) diff --git a/codec/protobuf/protobuf.go b/codec/protobuf/protobuf.go index 534cb62..0dda121 100644 --- a/codec/protobuf/protobuf.go +++ b/codec/protobuf/protobuf.go @@ -4,7 +4,7 @@ package protobuf import ( "errors" - "github.com/AndersonBargas/rainstorm/v4/codec/json" + "github.com/AndersonBargas/rainstorm/v5/codec/json" "github.com/golang/protobuf/proto" ) diff --git a/codec/protobuf/protobuf_test.go b/codec/protobuf/protobuf_test.go index 86b3801..249e619 100644 --- a/codec/protobuf/protobuf_test.go +++ b/codec/protobuf/protobuf_test.go @@ -6,8 +6,8 @@ import ( "path/filepath" "testing" - "github.com/AndersonBargas/rainstorm/v4" - "github.com/AndersonBargas/rainstorm/v4/codec/internal" + "github.com/AndersonBargas/rainstorm/v5" + "github.com/AndersonBargas/rainstorm/v5/codec/internal" "github.com/stretchr/testify/require" ) diff --git a/codec/sereal/sereal_test.go b/codec/sereal/sereal_test.go index 87fb6b7..c7c850b 100644 --- a/codec/sereal/sereal_test.go +++ b/codec/sereal/sereal_test.go @@ -3,7 +3,7 @@ package sereal import ( "testing" - "github.com/AndersonBargas/rainstorm/v4/codec/internal" + "github.com/AndersonBargas/rainstorm/v5/codec/internal" "github.com/stretchr/testify/require" ) diff --git a/examples_test.go b/examples_test.go index 8cde906..4e98217 100644 --- a/examples_test.go +++ b/examples_test.go @@ -9,8 +9,8 @@ import ( "strings" "time" - "github.com/AndersonBargas/rainstorm/v4" - "github.com/AndersonBargas/rainstorm/v4/codec/gob" + "github.com/AndersonBargas/rainstorm/v5" + "github.com/AndersonBargas/rainstorm/v5/codec/gob" bolt "go.etcd.io/bbolt" ) diff --git a/extract.go b/extract.go index b465327..c348cc1 100644 --- a/extract.go +++ b/extract.go @@ -6,7 +6,7 @@ import ( "strconv" "strings" - "github.com/AndersonBargas/rainstorm/v4/index" + "github.com/AndersonBargas/rainstorm/v5/index" bolt "go.etcd.io/bbolt" ) diff --git a/finder.go b/finder.go index e7dfb4c..0486e77 100644 --- a/finder.go +++ b/finder.go @@ -4,8 +4,8 @@ import ( "fmt" "reflect" - "github.com/AndersonBargas/rainstorm/v4/index" - "github.com/AndersonBargas/rainstorm/v4/q" + "github.com/AndersonBargas/rainstorm/v5/index" + "github.com/AndersonBargas/rainstorm/v5/q" bolt "go.etcd.io/bbolt" ) diff --git a/go.mod b/go.mod index ce81777..453b439 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/AndersonBargas/rainstorm/v4 +module github.com/AndersonBargas/rainstorm/v5 require ( github.com/DataDog/zstd v1.4.1 // indirect diff --git a/index/id.go b/index/id.go index 3689361..0ee7e97 100644 --- a/index/id.go +++ b/index/id.go @@ -3,7 +3,7 @@ package index import ( "bytes" - "github.com/AndersonBargas/rainstorm/v4/internal" + "github.com/AndersonBargas/rainstorm/v5/internal" bolt "go.etcd.io/bbolt" ) diff --git a/index/id_test.go b/index/id_test.go index 54db1e5..a8ca70c 100644 --- a/index/id_test.go +++ b/index/id_test.go @@ -6,9 +6,9 @@ import ( "path/filepath" "testing" - "github.com/AndersonBargas/rainstorm/v4" - "github.com/AndersonBargas/rainstorm/v4/index" - "github.com/AndersonBargas/rainstorm/v4/q" + "github.com/AndersonBargas/rainstorm/v5" + "github.com/AndersonBargas/rainstorm/v5/index" + "github.com/AndersonBargas/rainstorm/v5/q" "github.com/stretchr/testify/require" bolt "go.etcd.io/bbolt" ) diff --git a/index/list.go b/index/list.go index e0278ed..0e720b3 100644 --- a/index/list.go +++ b/index/list.go @@ -3,7 +3,7 @@ package index import ( "bytes" - "github.com/AndersonBargas/rainstorm/v4/internal" + "github.com/AndersonBargas/rainstorm/v5/internal" bolt "go.etcd.io/bbolt" ) diff --git a/index/list_test.go b/index/list_test.go index 1f7877c..260bd1f 100644 --- a/index/list_test.go +++ b/index/list_test.go @@ -8,9 +8,9 @@ import ( "path/filepath" "testing" - "github.com/AndersonBargas/rainstorm/v4" - "github.com/AndersonBargas/rainstorm/v4/codec/gob" - "github.com/AndersonBargas/rainstorm/v4/index" + "github.com/AndersonBargas/rainstorm/v5" + "github.com/AndersonBargas/rainstorm/v5/codec/gob" + "github.com/AndersonBargas/rainstorm/v5/index" "github.com/stretchr/testify/require" bolt "go.etcd.io/bbolt" ) diff --git a/index/unique.go b/index/unique.go index 79ffbc7..2a907c4 100644 --- a/index/unique.go +++ b/index/unique.go @@ -3,7 +3,7 @@ package index import ( "bytes" - "github.com/AndersonBargas/rainstorm/v4/internal" + "github.com/AndersonBargas/rainstorm/v5/internal" bolt "go.etcd.io/bbolt" ) diff --git a/index/unique_test.go b/index/unique_test.go index d264ee1..a824932 100644 --- a/index/unique_test.go +++ b/index/unique_test.go @@ -7,9 +7,9 @@ import ( "path/filepath" "testing" - "github.com/AndersonBargas/rainstorm/v4" - "github.com/AndersonBargas/rainstorm/v4/codec/gob" - "github.com/AndersonBargas/rainstorm/v4/index" + "github.com/AndersonBargas/rainstorm/v5" + "github.com/AndersonBargas/rainstorm/v5/codec/gob" + "github.com/AndersonBargas/rainstorm/v5/index" "github.com/stretchr/testify/require" bolt "go.etcd.io/bbolt" ) diff --git a/kv_test.go b/kv_test.go index 8c503e7..2f31bb7 100644 --- a/kv_test.go +++ b/kv_test.go @@ -5,8 +5,8 @@ import ( "testing" "time" - "github.com/AndersonBargas/rainstorm/v4/codec/gob" - "github.com/AndersonBargas/rainstorm/v4/codec/json" + "github.com/AndersonBargas/rainstorm/v5/codec/gob" + "github.com/AndersonBargas/rainstorm/v5/codec/json" "github.com/stretchr/testify/require" bolt "go.etcd.io/bbolt" ) diff --git a/node.go b/node.go index 68852f7..e3ac4a6 100644 --- a/node.go +++ b/node.go @@ -1,7 +1,7 @@ package rainstorm import ( - "github.com/AndersonBargas/rainstorm/v4/codec" + "github.com/AndersonBargas/rainstorm/v5/codec" bolt "go.etcd.io/bbolt" ) diff --git a/node_test.go b/node_test.go index 98a637a..47d80ab 100644 --- a/node_test.go +++ b/node_test.go @@ -3,8 +3,8 @@ package rainstorm import ( "testing" - "github.com/AndersonBargas/rainstorm/v4/codec/gob" - "github.com/AndersonBargas/rainstorm/v4/codec/json" + "github.com/AndersonBargas/rainstorm/v5/codec/gob" + "github.com/AndersonBargas/rainstorm/v5/codec/json" "github.com/stretchr/testify/require" bolt "go.etcd.io/bbolt" ) diff --git a/options.go b/options.go index 0c44970..c6341ca 100644 --- a/options.go +++ b/options.go @@ -3,8 +3,8 @@ package rainstorm import ( "os" - "github.com/AndersonBargas/rainstorm/v4/codec" - "github.com/AndersonBargas/rainstorm/v4/index" + "github.com/AndersonBargas/rainstorm/v5/codec" + "github.com/AndersonBargas/rainstorm/v5/index" bolt "go.etcd.io/bbolt" ) diff --git a/q/examples_test.go b/q/examples_test.go index 4a0602e..b21a334 100644 --- a/q/examples_test.go +++ b/q/examples_test.go @@ -12,8 +12,8 @@ import ( "path/filepath" "strings" - "github.com/AndersonBargas/rainstorm/v4" - "github.com/AndersonBargas/rainstorm/v4/q" + "github.com/AndersonBargas/rainstorm/v5" + "github.com/AndersonBargas/rainstorm/v5/q" ) func ExampleRe() { diff --git a/query.go b/query.go index 1019c5c..7446689 100644 --- a/query.go +++ b/query.go @@ -1,8 +1,8 @@ package rainstorm import ( - "github.com/AndersonBargas/rainstorm/v4/internal" - "github.com/AndersonBargas/rainstorm/v4/q" + "github.com/AndersonBargas/rainstorm/v5/internal" + "github.com/AndersonBargas/rainstorm/v5/q" bolt "go.etcd.io/bbolt" ) diff --git a/query_test.go b/query_test.go index c782f37..212872e 100644 --- a/query_test.go +++ b/query_test.go @@ -4,8 +4,8 @@ import ( "fmt" "testing" - "github.com/AndersonBargas/rainstorm/v4/codec/json" - "github.com/AndersonBargas/rainstorm/v4/q" + "github.com/AndersonBargas/rainstorm/v5/codec/json" + "github.com/AndersonBargas/rainstorm/v5/q" "github.com/stretchr/testify/require" ) diff --git a/sink.go b/sink.go index 5d9542b..185eed1 100644 --- a/sink.go +++ b/sink.go @@ -5,8 +5,8 @@ import ( "sort" "time" - "github.com/AndersonBargas/rainstorm/v4/index" - "github.com/AndersonBargas/rainstorm/v4/q" + "github.com/AndersonBargas/rainstorm/v5/index" + "github.com/AndersonBargas/rainstorm/v5/q" bolt "go.etcd.io/bbolt" ) diff --git a/store.go b/store.go index 29fab52..dd28881 100644 --- a/store.go +++ b/store.go @@ -4,8 +4,8 @@ import ( "bytes" "reflect" - "github.com/AndersonBargas/rainstorm/v4/index" - "github.com/AndersonBargas/rainstorm/v4/q" + "github.com/AndersonBargas/rainstorm/v5/index" + "github.com/AndersonBargas/rainstorm/v5/q" bolt "go.etcd.io/bbolt" ) diff --git a/store_test.go b/store_test.go index 83beaa5..d844d15 100644 --- a/store_test.go +++ b/store_test.go @@ -6,9 +6,9 @@ import ( "testing" "time" - "github.com/AndersonBargas/rainstorm/v4/codec/gob" - "github.com/AndersonBargas/rainstorm/v4/codec/json" - "github.com/AndersonBargas/rainstorm/v4/q" + "github.com/AndersonBargas/rainstorm/v5/codec/gob" + "github.com/AndersonBargas/rainstorm/v5/codec/json" + "github.com/AndersonBargas/rainstorm/v5/q" "github.com/stretchr/testify/require" bolt "go.etcd.io/bbolt" ) diff --git a/storm.go b/storm.go index e26676e..8de63a6 100644 --- a/storm.go +++ b/storm.go @@ -5,8 +5,8 @@ import ( "encoding/binary" "time" - "github.com/AndersonBargas/rainstorm/v4/codec" - "github.com/AndersonBargas/rainstorm/v4/codec/json" + "github.com/AndersonBargas/rainstorm/v5/codec" + "github.com/AndersonBargas/rainstorm/v5/codec/json" bolt "go.etcd.io/bbolt" ) diff --git a/storm_test.go b/storm_test.go index 9f2c6b5..cae8978 100644 --- a/storm_test.go +++ b/storm_test.go @@ -12,7 +12,7 @@ import ( "testing" "time" - "github.com/AndersonBargas/rainstorm/v4/codec/json" + "github.com/AndersonBargas/rainstorm/v5/codec/json" "github.com/stretchr/testify/require" bolt "go.etcd.io/bbolt" ) diff --git a/version.go b/version.go index c29d60a..2197416 100644 --- a/version.go +++ b/version.go @@ -1,4 +1,4 @@ package rainstorm // Version of Rainstorm -const Version = "4.1.0" +const Version = "5.0.0"