GithubHelp home page GithubHelp logo

shawvi / jsondb Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kleunen/jsondb

0.0 1.0 0.0 136 KB

Json Database

License: GNU Lesser General Public License v3.0

CMake 1.75% C++ 97.67% Makefile 0.58%

jsondb's Introduction

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 <[email protected]>

jsondb's People

Contributors

kleunen avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.