Objectbox Generator Versions Save

ObjectBox Generator based on FlatBuffers schema files (fbs) for C and C++ (more languages in the future)

v0.14.0

2 months ago

General improvements

  • Update FlatBuffers to v23.5.26

C++ improvements

  • The -cpp CLI parameter now defaults to (at least) C++14 output, e.g. now generates std::make_unique()
  • Added new mode -cpp11 for C++11 output (C++11 stays the minimal supported version)
  • New CLI parameters -empty-string-as-null and -nan-as-null to persist "special values" as null in the database
  • Fixes to generated code that fills a given object with DB values: strings, vectors, and optional members are now properly reset on null values
  • Update catch2 to 2.13.10

Getting Started Guide

v0.13.0

3 years ago
  • align to-one relation ID model with other language bindings - don't use "unsigned" annotation
  • add id-companion and date-nano annotations for Go to enable TimeSeries model definition

v0.12.0

3 years ago
  • objectbox-generator can be run with a path pattern (glob or recursive path style - see objectbox-generator --help) to support entity removal
  • support optional annotation on fields that you want to support NULL value semantics in C and C++; see objectbox-generator --help to specify a type for C++ code (std:: optional/shared_ptr/unique_ptr)
  • add id(assignable) annotation you can use on an ID field if you want to manually set object IDs before inserting (instead of the default auto-increment ID assigned by ObjectBox)
  • add sync(sharedGlobalIds) annotation to disable ID mapping on synced objects
  • C++ generate code - make _OBX_MetaInfo a sub-struct in the generated struct instead of part of the "underscore" class - avoiding potential duplicate symbols

v0.11.0

3 years ago
  • support specifying an index type with a unique annotation
  • add sync entity annotation
  • accommodate changes in objectbox-c v0.11.0

v0.10.1

3 years ago
  • decrease FlatBuffers minimum version dependency to v1.11.0
  • Go generator support comma in addition to space as a multiple annotation separator

v0.10.0

3 years ago
  • update to objectbox-c v0.10.0 introducing many new C++ API features
  • new generated C & C++ functions simplifying the most common operations
  • split generated C++ code to headers (.obx.hpp) and sources (.obx.cpp) - make sure to use in your project and remove the old "-cpp.obx.h"
  • support generating Go code moved from objectbox-gogen
  • standalone (many-to-many) relation and date-nano annotation support

v0.9.1

3 years ago
  • generated code fixes
  • update to objectbox-c v0.9.1

v0.9.0

3 years ago
  • first public release
  • supports C & C++ code generation