Skip to content

kleunen/JsonDb

Repository files navigation

JsonDb is a json database. It allows persistent storage of json in a database. To build JsonDb, the following packages are required:

- GNU Make
- GNU GCC
- Boost
- QDBM
- CMake

To build the json database, do the following:
./configure
make

To run the unit test, do the following:
make run_unit_test

It is possible to edit / view the database using a console tool, do the following:

./build/jsondb_console test.db

On the console, try the following for example:

put $.a.b.c.d.string "Hello world"
put $.a.b.c.d.float 1.0
put $.a.b.c.d.int 10
put $.a.b.c.d.array [10, 20, 30]
append $.a.b.c.d.array { "a" : "Hello", "b" : "World", c: 10 }
get $

Result:

{
  "a" =
  {
    "b" =
    {
      "c" =
      {
        "d" =
        {
          "array" = [10,20,30,
          {
            "a" = "Hello",
            "b" = "World"
          }],
          "float" = 1.0,
          "int" = 10,
          "string" = "Hello world"
        }
      }
    }
  }
}

Wouter van Kleunen <wouter.van@kleunen.nl>

Releases

No releases published

Packages

No packages published

Languages