-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME
executable file
·54 lines (44 loc) · 999 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
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]>