Store all kind of objects in one container.
C++ CMake Other
Latest commit 556dbc4 Oct 22, 2016 @zussel removed double function

Open Object Store (OOS)

Version 0.5.0-alpha.1

Store all kind of objects in one container.

Build Status Build Status Coverage Status GitHub version GitHub license

OOS is a ORM framework written in C++. It aims to encapsulate all database stuff (database backends, sql statements, serialization of objects) and provides the user an easy to use interface and a unique container for all objects. Given this container the user has a centralized point of storage for all objects at hand but with the ability to create views on concrete object types.


  • A unique fluent query interface
  • Support for SQLite, MySQL and MS SQL Server
  • One to one/many relations
  • One storage container
  • Filter with simple expressions
  • Transactions
  • STL like interface and iterators

Documentation can be found here.


// use oos' namespace
using namespace oos

// a simple person class
struct person {
  identifier<long> id;   // primary key
  varchar<256> name;
  unsigned int age = 0;

  person(long i, const std::string n)
    : id(i), name(n)

  template < class SERIALIZER >
  void serialize(SERIALIZER &serializer) {
    serializer.serialize("id", id);
    serializer.serialize("name", name);
    serializer.serialize("age", age);

// prepare the persistence layer
persistence p("sqlite://db.sqlite");

// create a database session
session s(p);

// insert george
// returns an oos::object_ptr<person>
auto george = s.insert(new person(1, "george"));

// modify george
george->age = 35;
// delete george


The library has almost no dependencies. At least the database library you want to use. If you would like to build from the sources you need at least the cmake build system installed. If you plan to generate an install package on a windows system you need the nullsoft scriptable install system.


Get the sources from GitHub and enter the created directory:

$ git clone
$ cd oos

Building under Linux

Create a build directory change to it and call cmake:

$ mkdir build
$ cd build
$ cmake ..

Then you can build oos from sources:

$ make

Building under Windows (for Visual Studio)

Create a build directory change to it and call cmake:

$ mkdir build
$ cd build
$ cmake -G "Visual Studio *" ..

Where * is one of the "Visual Studio" strings up from "14". See cmake documentation here. After generation you find a oos.sln solution file in the current directory.


If you have questions or issues concerning oos you can place an issue in my oos github repository or contact me via mail oos at zussel dot de.