Introduction
ObjectBox is a fast database for data objects.
Installation and examples
See Installation docs and check the project's GitHub repository for additional info and examples including the usage of flatcc.
Headers
- ObjectBox C99 support is provided by a single header file: objectbox.h
- ObjectBox C++11 support is available in an additional header: objectbox.hpp
Basic concepts
- Objects are the entities persisted in the database
- Objects are FlatBuffers
- Objects are "grouped" by their type; e.g. there is a Box (or "Cursor") for each type
- Objects are addressed using a 64 bit integer ID (
obx_id
)
- There is no query language; queries are build using a query builder
- Objects are stored on disk by default (ACID), or in-memory ("memory:" directory prefix)
See docs for more information on how to use ObjectBox in C and C++
API Naming conventions
- C methods: obx_thing_action()
- C structs: OBX_thing {}
- C error codes: OBX_ERROR_REASON
- C++ namespace: obx::
Essential types
Check the docs for the following types:
Essential Links/Readings