ObjectBox Generator based on FlatBuffers schema files (fbs) for C and C++ (more languages in the future)
General improvements
C++ improvements
-cpp
CLI parameter now defaults to (at least) C++14 output, e.g. now generates std::make_unique()
-cpp11
for C++11 output (C++11 stays the minimal supported version)-empty-string-as-null
and -nan-as-null
to persist "special values" as null in the database2.13.10
id-companion
and date-nano
annotations for Go to enable TimeSeries model definitionobjectbox-generator
can be run with a path pattern (glob or recursive path style - see objectbox-generator --help
) to support entity removaloptional
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
)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)sync(sharedGlobalIds)
annotation to disable ID mapping on synced objects_OBX_MetaInfo
a sub-struct in the generated struct instead of part of the "underscore" class - avoiding potential duplicate symbolsunique
annotationsync
entity annotation