GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Categories
  • Newsletter
  • Submit
  • Login
  • Awesome C++
  • Database

This view

  • Original page
  • New address

GeezerVison is showing cpp.libhunt.com — ObjectBox C/C++ database Alternatives - C++ Database | LibHunt

  • Subscribe
  • Submit
  • Categories
  • About
  • Login

ObjectBox C/C++ database

C and C++ database for objects and structs

objectbox logo
objectbox.io    Source Code    Changelog
Suggest Changes
Take the C++ Developer Survey - About 6 minutes on the tools, libraries and AI you use with C++. You get the results by email. Take the survey »
Popularity
3.5
Growing
Activity
3.2
-
Stars 278
Watchers 13
Forks 45
Last Commit 15 days ago

Description

ObjectBox is a superfast cross-platform object-oriented database.

It's best explained via example code. For a task database application, these few lines show CRUD operations (create, read, update, delete):

obx::Box box(store); obx_id id = box.put({.text = "Buy milk"}); // Create std::unique_ptr task = box.get(id); // Read if (task) { task->text += " & some bread"; box.put(*task); // Update box.remove(id); // Delete }

Programming language: C
License: Apache License 2.0
Tags: Database     NoSQL Database     Embedded Database     Object Persistence    
Latest version: v6.0.0

ObjectBox C/C++ database alternatives and similar libraries

Based on the "Database" category.
Alternatively, view ObjectBox C/C++ database alternatives based on common mentions on social networks and blogs.

  • ClickHouse

    9.9 10.0 L1 ObjectBox C/C++ database VS ClickHouse
    ClickHouse® is a real-time analytics database management system
    ClickHouse logo
  • LevelDB

    9.8 1.1 L1 ObjectBox C/C++ database VS LevelDB
    LevelDB is a fast key-value storage library written at Google that provides an ordered mapping from string keys to string values.
    google logo
  • SaaSHub - Software Alternatives and Reviews

    SaaSHub helps you find the best software and product alternatives
    Promo www.saashub.com
    SaaSHub Logo
  • RocksDB

    9.8 9.7 L1 ObjectBox C/C++ database VS RocksDB
    A library that provides an embeddable, persistent key-value store for fast storage.
    meta logo
  • Hiredis

    8.7 7.7 L3 ObjectBox C/C++ database VS Hiredis
    Minimalistic C client for Redis >= 1.2
    redis logo
  • LMDB

    7.5 8.1 ObjectBox C/C++ database VS LMDB
    Read-only mirror of official repo on openldap.org. Issues and pull requests here are ignored. Use OpenLDAP ITS for issues.
    LMDB logo
  • sqlite_orm

    7.1 0.0 ObjectBox C/C++ database VS sqlite_orm
    ❤️ SQLite ORM light header only library for modern C++
    fnc12 logo
  • SQLite

    6.9 9.8 L2 ObjectBox C/C++ database VS SQLite
    Unofficial git mirror of SQLite sources (see link for build instructions)
    mackyle logo
  • SOCI

    6.7 8.3 ObjectBox C/C++ database VS SOCI
    Official repository of the SOCI - The C++ Database Access Library
    SOCI logo
  • TileDB

    6.5 6.6 ObjectBox C/C++ database VS TileDB
    The Universal Storage Engine
    TileDB-Inc logo
  • MongoDB C++ Driver

    6.4 8.9 L1 ObjectBox C/C++ database VS MongoDB C++ Driver
    C++ Driver for MongoDB
    mongodb logo
  • Sophia

    6.3 2.0 L3 ObjectBox C/C++ database VS Sophia
    Modern transactional key-value/row storage library.
    pmwkaa logo
  • cpp_redis

    6.3 0.0 ObjectBox C/C++ database VS cpp_redis
    DISCONTINUED. C++11 Lightweight Redis client: async, thread-safe, no dependency, pipelining, multi-platform.
  • MongoDB C Driver

    6.0 9.4 L3 ObjectBox C/C++ database VS MongoDB C Driver
    The Official MongoDB driver for C language
    mongodb logo
  • Bedrock

    5.6 9.9 L3 ObjectBox C/C++ database VS Bedrock
    Rock solid distributed database specializing in active/active automatic failover and WAN replication
    Expensify logo
  • libmdbx

    5.5 9.6 ObjectBox C/C++ database VS libmdbx
    DISCONTINUED. One of the fastest embeddable key-value ACID database without WAL. libmdbx surpasses the legendary LMDB in terms of reliability, features and performance.
  • sqlite_modern_cpp

    5.3 0.0 ObjectBox C/C++ database VS sqlite_modern_cpp
    The C++14 wrapper around sqlite library
    SqliteModernCpp logo
  • MongoDB Libbson

    4.9 0.0 L2 ObjectBox C/C++ database VS MongoDB Libbson
    DISCONTINUED. A BSON utility library. [Apache2]
  • hiberlite

    4.8 0.0 L5 ObjectBox C/C++ database VS hiberlite
    C++ ORM for SQLite
    paulftw logo
  • SimDB

    4.3 0.0 ObjectBox C/C++ database VS SimDB
    A high performance, shared memory, lock free, cross platform, single file, no dependencies, C++11 key-value store
    LiveAsynchronousVisualizedArchitecture logo
  • upscaledb

    4.2 0.0 L1 ObjectBox C/C++ database VS upscaledb
    A very fast lightweight embedded database engine with a built-in query language.
    cruppstahl logo
  • LMDB++

    3.7 0.0 ObjectBox C/C++ database VS LMDB++
    C++11 wrapper for the LMDB embedded B+ tree database library.
    drycpp logo
  •  TinyORM

    3.6 9.6 ObjectBox C/C++ database VS  TinyORM
    Modern C++ ORM library with MySQL, PostgreSQL, and SQLite support
    silverqx logo
  • redis3m

    3.5 0.0 L4 ObjectBox C/C++ database VS redis3m
    A C++ Redis client
    luca3m logo
  • BerylDB

    2.9 0.0 ObjectBox C/C++ database VS BerylDB
    DISCONTINUED. BerylDB is a fully modular data structure data manager that can be used to store data as key-value entries. The server allows channel subscription and is optimized to be used as a cache repository. Supported structures include lists, sets, multimaps, and keys.
    beryldb logo
  • RethinkDB driver for C++

    2.8 0.0 L1 ObjectBox C/C++ database VS RethinkDB driver for C++
    RethinkDB driver for C++
    AtnNn logo
  • tntdb

    2.2 6.5 L1 ObjectBox C/C++ database VS tntdb
    Tntdb is a c++-class-library for easy access to databases.
    maekitalo logo
  • Website

    2.1 8.6 L4 ObjectBox C/C++ database VS Website
    VSQLite++ Library - BSD-3 Licensed
    vinzenz logo
  • aredis

    1.8 0.0 ObjectBox C/C++ database VS aredis
    a clean redis C++ client
    lordoffox logo
  • libgeodesk

    1.5 - ObjectBox C/C++ database VS libgeodesk
    Fast and storage-efficient spatial database engine for OpenStreetMap data
    clarisma logo
  • SQLinq

    1.0 7.3 ObjectBox C/C++ database VS SQLinq
    SQLinq is a C++ library that enables easy and efficient integration with SQL databases, using a syntax similar to LINQ from C#.
    piotr-maker logo
  • MySQL++

    - ObjectBox C/C++ database VS MySQL++
    A C++ wrapper for MySQL's C API. [LGPL]

* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.

Do you think we are missing an alternative of ObjectBox C/C++ database or a related project?

Add another 'Database' Library

Popular Comparisons

  • ObjectBox C/C++ database
    vs
    RocksDB
  • ObjectBox C/C++ database
    vs
    libmdbx
  • ObjectBox C/C++ database
    vs
    RethinkDB driver for C++
  • ObjectBox C/C++ database
    vs
    hiberlite
  • ObjectBox C/C++ database
    vs
    LMDB

README

ObjectBox Embedded Database for C and C++

ObjectBox is a superfast C and C++ database for embedded devices (mobile and IoT), desktop and server apps. The out-of-the-box Data Sync keeps data in sync across devices and any kind of backend/cloud reliably for occasionally connected devices. ObjectBox Data Persistence and Data Sync follows an offline-first approach and can be used on-premise as well as with a cloud setup.

This is the ObjectBox runtime library to run ObjectBox as an embedded database in your C or C++ application.

Here's a C++ example that inserts a Task data object (a plain user defined struct) into the database:

obx::Box<Task> box(store);
box.put({.text = "Buy milk"}); 

See ObjectBox C and C++ docs for API details.

Latest version: 0.18.0 (2022-10-31). See [changelog](CHANGELOG.md) for more details.

Table of Contents:

  • Feature Highlights
  • Usage and Installation
  • C++ API
  • Examples
  • Documentation
  • Current state / Changelog
    • Supported platforms
  • C API as the Foundation for Higher Languages
  • Other languages/bindings
  • How can I help ObjectBox?
  • License

Feature Highlights

🏁 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\ 💻 Multiplatform: Linux, Windows, Android, iOS, macOS

🌱 Scalable: handling millions of objects resource-efficiently with ease\ 💐 Queries: filter data as needed, even across relations\ 🦮 Statically typed: compile time checks & optimizations\ 📃 Automatic schema migrations: no update scripts needed

And much more than just data persistence\ 👥 ObjectBox Sync: keeps data in sync between devices and servers\ 🕒 ObjectBox TS: time series extension for time based data

Some more technical details:

  • Zero-copy reads for highest possible performance; access tens of millions of objects on commodity hardware
  • Lightweight for smart devices; its binary size is only around 1 MB
  • Direct support for FlatBuffers data objects (aka "flatbuffers table")
  • Flex type to represent any FlexBuffers
  • Secondary indexes based on object properties
  • Async API for asynchronous puts, inserts, updates, removes
  • Optimized for time series data (TS edition only)
  • Data synchronization across the network (sync edition only)

Usage and Installation

In most cases you want to use the C and C++ APIs in combination with the ObjectBox Generator tool. This way, you get a convenient C or C++ API which requires minimal code on your side to work with the database.

The APIs come as single header file for C and C++:

  • C: [include/objectbox.h](include/objectbox.h)
  • C++: [include/objectbox.hpp](include/objectbox.hpp) (depends on objectbox.h)

Compile your code against it and use the binary library (.so, .dylib, .dll depending on the platform) to link against. Head over to ObjectBox C and C++ installation docs for step-by-step instructions.

C++ API

The C++ API is built on top of the C API exposed by the library (e.g. you still need objectbox.h). You can also use both APIs from your code if necessary. For example, you use the C++ obx::Box class for most database operations, but "break out" into the C API for a special function you need.
Note that to use the obx::Box class, you also need the ObjectBox Generator to generate binding code. Find more details how to use it the Getting started section of the docs.

Examples

Have a look at the following TaskList example apps, depending on your programming language and preference:

  • [C, cursor, no generated code](examples/c-cursor-no-gen) - plain C; using flatcc directly; without any generated code
  • [C, with generated code](examples/c-gen) - plain C, using code generated by objectbox-generator
  • [C++, with generated code](examples/cpp-gen) - C++, using code generated by objectbox-generator
    • also includes sync client application example

Documentation

  • C and C++ docs - official ObjectBox C and C++ documentation
  • [include/objectbox.h](include/objectbox.h) - C API header file contains docs as code comments
  • [include/objectbox.hpp](include/objectbox.hpp) - C++ API header file contains docs as code comments
  • C and C++ API reference docs - online HTML docs (Doxygen)

Current state / Changelog

The C API is a thin wrapper around a robust DB core, which is version 3.x and already used on millions of devices.

Beta notice: the C API will become stable starting from version 1.0. Until then, API improvements may result in breaking changes. For example, functions may still be renamed.

[Changelog](CHANGELOG.md): If you update from a previous version, please check the [changelog](CHANGELOG.md). Besides new features, there may be breaking changes requiring modifications to your code.

Supported platforms:

  • Linux 64-bit
  • Linux ARMv6hf (e.g. Raspberry PI Zero)
  • Linux ARMv7hf (e.g. Raspberry PI 3/4)
  • Linux ARMv8/AArch64 (e.g. Raspberry PI 3/4 with a 64 bit OS like Ubuntu)
  • MacOS 64-bit
  • Windows 32-bit
  • Windows 64-bit

C API as the Foundation for Higher Languages

The plain C API (without the Generator) also serves as a basis for ObjectBox bindings in higher languages. For example, the official APIs for Go, Swift, Dart/Flutter and Python rely on the C API. In the same way, you could create an ObjectBox API for another programming language, e.g. for JavaScript. For the C API, data consists of bytes representing FlatBuffers tables, which you can build and read in your language of choice.

Other languages/bindings

ObjectBox supports multiple platforms and languages. Besides C/C++, ObjectBox also offers:

  • ObjectBox Java / Kotlin: runs on Android, desktop, and servers.
  • ObjectBox Swift: build fast mobile apps for iOS (and macOS)
  • ObjectBox Dart/Flutter: cross-platform for mobile and desktop apps
  • ObjectBox Go: great for data-driven tools and embedded server applications

How can I help ObjectBox?

Let us know what you love, what you don’t, what do you want to see next?

We're looking forward to receiving your comments and requests:

  • Add GitHub issues
  • Upvote issues you find important by hitting the 👍/+1 reaction button
  • Drop us a line via @ObjectBox_io
  • ⭐ us, if you like what you see

Thank you! 🙏

Keep in touch: For general news on ObjectBox, check our blog!

License

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.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.


*Note that all licence references and agreements mentioned in the ObjectBox C/C++ database README section above are relevant to that project's source code only.

Do not miss the trending, libraries, news and articles with our weekly report.

Awesome C++ is part of the LibHunt network. Terms. Privacy Policy.

(CC)
BY-SA
Spin The Wheel Of Names for a cryptographically secure random name picker.
Schedule a when to meet poll.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.