ObjectBox Go
HomeBlogTwitterGitHub
  • Golang Database
  • Installation
  • Get started on-the-go
  • Transactions
  • Entity Annotations
  • Queries
  • Schema changes
  • Custom types
  • Relations
  • Data Sync
  • FAQ
  • ObjectBox Golang
  • ObjectBox C/C++ Docs
Powered by GitBook
On this page
  • Changelog
  • v2.0.0 (2025-03-11)
  • v1.8.1 (2024-08-29)
  • v1.8.0 (2024-02-19)
  • v1.7.0 (2023-06-23)
  • v1.6.1 (2022-01-27)
  • v1.6.0 (2022-01-14)
  • v1.5.0 (2021-08-18)
  • v1.4.0 (2021-04-01)
  • v1.3.0 (2021-03-19)
  • v1.2.0 (2020-08-25)
  • v1.1.2 (2020-03-18)
  • v1.1.1 (2020-02-14)
  • v1.1.0 (2019-12-16)
  • v1.0.0 (2019-07-16)
  • v0.9.0 (2019-04-24)
  • v0.9.0-rc (2019-02-22)
  • v0.8.0 (2018-12-06)
  • v0.7.1 (2018-11-30)
  • v0.7.0 (2018-11-29)
  • v0.6.0 (2018-11-28)

Was this helpful?

Golang Database

ObjectBox Go is a lean NoSQL Golang database for persisting objects. It is designed to give you high performance and easy native Go APIs on any POSIX-system and embedded devices.

NextInstallation

Last updated 2 months ago

Was this helpful?

Your opinion matters to us! To make ObjectBox better for our users, we have set up an . Please do fill this in (it only takes 2 minutes). Every response is highly appreciated. To rate this documentation, you can use the "Was this page helpful?" smiley at the end of each page.

Otherwise, feel free to open an or send us your comments to contact[at]objectbox.io - Thank you! And if you like what you see, we also appreciate a shout-out...

Changelog

v2.0.0 (2025-03-11)

  • Update ObjectBox Generator to 4.0.0

  • Update objectbox-c to v4.2.0

  • Sync: JWT credentials/authentication

  • Sync: Allow clients to pass multiple SyncCredentials for authentication

  • Fixed a version check that prevented using newer ObjectBox core version

  • Dropped support for Go 1.11 (this version was tested with Go versions 1.12 - 1.24)

v1.8.1 (2024-08-29)

  • Fixed a regression for 32-bit platforms that could result in crashes

  • Update FlatBuffers to v23.5.26

  • Update ObjectBox Generator to 0.14

v1.8.0 (2024-02-19)

  • In-memory databases (provide a "directory" option like "memory:" + DB name)

  • Fix leaks for Box functions taking multiple IDs

v1.7.0 (2023-06-23)

v1.6.1 (2022-01-27)

  • Improved version check for the dynamically loaded C lib

  • Update to objectbox-c v0.15.1 which contains fixes and minor performance improvements

v1.6.0 (2022-01-14)

v1.5.0 (2021-08-18)

  • update objectbox-c to v0.14.0

v1.4.0 (2021-04-01)

  • add TimeSeries model definition support using id-companion and date-nano annotations

  • avoid time.Duration.Milliseconds() not available on old Go Versions

  • NewSyncClient - flip return values to align with the other "constructors"

  • add NanoTimeInt64* built-in converters

v1.3.0 (2021-03-19)

  • add self-assignable IDs: objectbox:"id(assignable)"

  • add query GreaterOrEqual/LessOrEqual for ints and floats

  • update objectbox-generator to v0.12.0

  • update objectbox-c to v 0.13.0

  • fix compiling on old gcc (e.g. the one in CentOS 7)

v1.2.0 (2020-08-25)

  • update to objectbox-c v0.10.0 with latest improvements and fixes

  • support comma in addition to space as an annotation separator

v1.1.2 (2020-03-18)

  • ensure Query finalizer is only executed by Go GC after a native call finishes

v1.1.1 (2020-02-14)

  • use temp directories in tests to prevent failure in recent Go versions checking-out modules as read-only

v1.1.0 (2019-12-16)

  • add Box Insert and Update methods with stricter semantics than Put

  • add AsyncBox with Put, Insert, Update, Remove

  • Code generator improvements

    • handle type-checker errors more gracefully (don't fail on failures in unneeded imports)

    • add clean command-line option to remove all generated files

    • time.Time will automatically use a built in converter to Unix timestamp (milliseconds)

    • improve model.json file diff-level compatibility with other language bindings

    • embedded struct and to-one relations cycle detection

    • support changing property type and resetting its stored value

    • nil check for embedded pointer structs in the generated code

    • minor bug fixes when the generated code wouldn't compile in some edge cases

  • update to the latest ObjectBox-C library v0.8.1

  • deprecate box.PutAsync() in favor of box.async().Put() i.e. using AsyncBox

  • mark byte properties as unsigned

  • fix getters on objects with missing relations and non-existent IDs in GetMany

  • better windows installation experience using a PowerShell script

  • make golint happier :)

v1.0.0 (2019-07-16)

This is quite a big release, bringing some new features and cleaning up the API.

  • explicit transaction support via ObjectBox::RunInReadTx and ObjectBox::RunInWriteTx

  • Go Modules support

  • add objectbox namespace to tags to align with reflect.StructTag.Get unofficial spec

  • optional lazy loading on to-many relations - lazy annotation

  • box additions:

    • GetMany , RemoveMany, RemoveIds, ContainsIds, RemoveIds

    • to-many relation auxiliary methods: RelationIds , RelationPut, RelationRemove, RelationReplace

  • switch default/recommended go:generate entity generator command from objectbox-gogen to //go:generate go run github.com/objectbox/objectbox-go/cmd/objectbox-gogen

  • quite a few internal changes, renames and other refactorings (e.g. renamed PutAll to PutMany, removed Cursor, aligned model JSON with other bindings, ...)

v0.9.0 (2019-04-24)

  • Fixed macOS build and 32-bit query support.

  • Minor refactoring/linter issues

v0.9.0-rc (2019-02-22)

As we queued up quite a few changes, we're doing a release candidate first for you to test:

  • Improved relations support

  • Embedded structs

  • Recognize and handle type aliases and named types used as entity fields

  • New Box methods: CountMax(), IsEmpty(), Contains() and PutAsyncWithTimeout()

  • Query support AND & OR (combine conditions)

  • Query LT|GT|Between support for unsigned numbers

  • Support numeric string ID in the entity

  • Support for[]string as a field type

  • Optional pass/return-by-value for slice-of-structs in the generated code

  • Change strings to use hash-based instead of value-based indexes by default

  • A new option to AlwaysAwaitAsync that can be enabled during initialization

v0.8.0 (2018-12-06)

  • Box and Query do not require manual closing anymore

v0.7.1 (2018-11-30)

  • Fixed wrong mapping for Go types (u)int and (u)int8. Luckily we noticed this very early: if you used those types in previous versions, please delete old database files.

  • Transactions are now safely aborted in case of panics

v0.7.0 (2018-11-29)

  • Changed file name of generated code, e.g. file endings for model is now ".obx.go"

  • Foundation for all query conditions (final query API will come with the next version)

  • Put(object) now assigns the new id to the object itself

v0.6.0 (2018-11-28)

Initial public release

Update objectbox-c to v0.21.0 with many improvements ()

Update bringing many improvements to Go

Update bringing many improvements to Go

add support

add client support

extract code generation into a separate module/project and depend on it to preserve existing go:generate annotations

add Query order and parameter alias support - see docs for more info

Custom to store unsupported types & structs that can't be inlined/prefixed

New Query methods:

New Query methods: - to run a cached query with custom parameters

New

Support for using UIDs

Anonymous Feedback Form
issue on GitHub
details
objectbox-c to v0.18.1
objectbox-c to v0.15.0
ObjectBox Sync
objectbox-generator
Queries
value-converter
Query API
renaming entities and their properties
PropertyQuery
Limit, Offset
Set*Params (type-based)