Skip to content

Commit

Permalink
Prepare 1.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
greenrobot committed Jan 14, 2022
1 parent 1f052bf commit 07cb074
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 13 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Go ObjectBox Database API
================
=========================
ObjectBox is a superfast Go database persisting objects; [check the performance benchmarks vs SQLite (GORM) & Storm](https://objectbox.io/go-1-0-release-and-performance-benchmarks/). Using this Golang API, you can use ObjectBox as an embedded database in your Go application.

ObjectBox persists your native Go structs using a simple CRUD API:
Expand All @@ -11,10 +11,10 @@ id, err := box.Put(&Person{ FirstName: "Joe", LastName: "Green" })
Want details? **[Read the docs](https://golang.objectbox.io/)** or
**[check out the API reference](https://godoc.org/github.com/objectbox/objectbox-go/objectbox)**.

Latest release: [v1.5.0 (2021-08-18)](https://golang.objectbox.io/)
Latest release: [v1.6.0 (2022-01-14)](https://golang.objectbox.io/)

High-performance Golang database
-------------
--------------------------------
🏁 **High performance** on restricted devices, like IoT gateways, micro controllers, ECUs etc.\
🪂 **Resourceful** with minimal CPU, power and Memory usage for maximum flexibility and sustainability\
🔗 **Relations:** object links / relationships are built-in\
Expand Down Expand Up @@ -128,7 +128,7 @@ Keep in touch: For general news on ObjectBox, [check our blog](https://objectbox

License
-------
Copyright 2018-2021 ObjectBox Ltd. All rights reserved.
Copyright 2018-2022 ObjectBox Ltd. All rights reserved.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion objectbox/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func (v Version) String() string {
// VersionGo returns the Version of the ObjectBox-Go binding
func VersionGo() Version {
// for label, use `beta.0` format, increasing the counter for each subsequent release
return Version{1, 5, 0, ""}
return Version{1, 6, 0, ""}
}

// VersionLib returns the Version of the dynamic linked ObjectBox library
Expand Down
26 changes: 18 additions & 8 deletions test/version_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,26 @@ func TestVersion(t *testing.T) {

var format = regexp.MustCompile(`^[0-9]+\.[0-9]+\.[0-9]+(-[a-z]+\.[0-9]+)?$`)

versionGo := objectbox.VersionGo().String()
if !format.MatchString(versionGo) {
t.Errorf("ObjectBox-Go version %v doesn't match expected regexp %v", versionGo, format)
versionGo := objectbox.VersionGo()
versionGoString := versionGo.String()
if !format.MatchString(versionGoString) {
t.Errorf("ObjectBox-Go version %v doesn't match expected regexp %v", versionGoString, format)
}
versionLib := objectbox.VersionLib().String()
if !format.MatchString(versionGo) {
t.Errorf("ObjectBox-C version %v doesn't match expected regexp %v", versionLib, format)
versionGoInt := versionGo.Major*10000 + versionGo.Minor*100 + versionGo.Patch
assert.True(t, versionGoInt >= 10600) // Update with new releases (won't fail if forgotten)
assert.True(t, versionGoInt < 20000) // Future next major release

versionLib := objectbox.VersionLib()
versionLibString := versionLib.String()
if !format.MatchString(versionGoString) {
t.Errorf("ObjectBox-C version %v doesn't match expected regexp %v", versionLibString, format)
}
assert.Eq(t, true, strings.Contains(versionInfo, versionGo))
assert.Eq(t, true, strings.Contains(versionInfo, versionLib))
versionLibInt := versionLib.Major*10000 + versionLib.Minor*100 + versionLib.Patch
assert.True(t, versionLibInt >= 1500) // Update with new releases (won't fail if forgotten)
assert.True(t, versionLibInt < 10000) // Future next major release

assert.Eq(t, true, strings.Contains(versionInfo, versionGoString))
assert.Eq(t, true, strings.Contains(versionInfo, versionLibString))
}

func TestVersionLabel(t *testing.T) {
Expand Down

0 comments on commit 07cb074

Please sign in to comment.