Skip to content
Newer
Older
100644 94 lines (70 sloc) 2.01 KB
3d5b602 @radare Add `sdb_config` and store last `sdb_set` timestamp
authored Feb 17, 2014
1 SDB (string database)
053df5a @radare * Initial import of sdb into mercurial
authored Apr 17, 2011
2 =====================
3
c01dace @radare Update README and honor 'make -s'
authored Mar 28, 2013
4 sdb is a simple string key/value database based on djb's cdb
5 disk storage and supports JSON and arrays introspection.
6
dfc51a4 @radare * Update TODO and README
authored Jun 18, 2011
7 mcsdbd is a memcache server with disk storage based on sdb.
2b61b35 @radare Add AUTHORS
authored Mar 30, 2013
8 It is distributed as a standalone binary and a library.
2a0ab66 @radare * Honor sdb - file-less database
authored Mar 25, 2012
9
2b61b35 @radare Add AUTHORS
authored Mar 30, 2013
10 There's also the sdbtypes: a vala library that implements
11 several data structures on top of an sdb or a memcache instance.
2a0ab66 @radare * Honor sdb - file-less database
authored Mar 25, 2012
12
df090fc @radare update readme for travis
authored Apr 1, 2015
13 [![Travis](https://api.travis-ci.org/radare/sdb.svg)](https://travis-ci.org/radare/sdb)
14
d658c71 @Maijin Add Jenkins and Coverity Badge
Maijin authored Apr 13, 2014
15 [![Build Status](http://ci.rada.re/buildStatus/icon?job=sdb)](http://ci.rada.re/job/sdb/)
16
17 [![Build Status](https://scan.coverity.com/projects/1651/badge.svg)](https://scan.coverity.com/projects/1651)
18
c01dace @radare Update README and honor 'make -s'
authored Mar 28, 2013
19 Author
20 ------
21 pancake <pancake@nopcode.org>
27729e8 @radare * Initial implementation of node-sdb-native
authored Apr 19, 2012
22
2a0ab66 @radare * Honor sdb - file-less database
authored Mar 25, 2012
23 Contains
24 --------
2b61b35 @radare Add AUTHORS
authored Mar 30, 2013
25 * namespaces (multiple sdb paths)
26 * atomic database sync (never corrupted)
c01dace @radare Update README and honor 'make -s'
authored Mar 28, 2013
27 * bindings for vala, luvit, newlisp and nodejs
2a0ab66 @radare * Honor sdb - file-less database
authored Mar 25, 2012
28 * commandline frontend for sdb databases
29 * memcache client and server with sdb backend
c01dace @radare Update README and honor 'make -s'
authored Mar 28, 2013
30 * arrays support (syntax sugar)
27729e8 @radare * Initial implementation of node-sdb-native
authored Apr 19, 2012
31 * json parser/getter (js0n.c)
053df5a @radare * Initial import of sdb into mercurial
authored Apr 17, 2011
32
33 Rips
34 ----
2a0ab66 @radare * Honor sdb - file-less database
authored Mar 25, 2012
35 * disk storage based on cdb code
36 * memory hashtable based on wayland code
37 * linked lists from r2 api
053df5a @radare * Initial import of sdb into mercurial
authored Apr 17, 2011
38
dfc51a4 @radare * Update TODO and README
authored Jun 18, 2011
39 Changes
40 -------
c01dace @radare Update README and honor 'make -s'
authored Mar 28, 2013
41 I have modified cdb code a little to create smaller databases and
42 be memory leak free in order to use it from a library.
921d617 @radare * Initial import of SdbTypes
authored Jun 17, 2011
43
44 The sdb's cdb database format is 10% smaller than the original
2a0ab66 @radare * Honor sdb - file-less database
authored Mar 25, 2012
45 one. This is because keylen and valuelen are encoded in 4 bytes:
46 1 for the key length and 3 for the value length.
921d617 @radare * Initial import of SdbTypes
authored Jun 17, 2011
47
dfc51a4 @radare * Update TODO and README
authored Jun 18, 2011
48 In a test case, a 4.3MB cdb database takes only 3.9MB after this
921d617 @radare * Initial import of SdbTypes
authored Jun 17, 2011
49 file format change.
a7784ec @radare * Added sdb_lock api
authored Apr 18, 2011
50
c01dace @radare Update README and honor 'make -s'
authored Mar 28, 2013
51 Usage example
52 -------------
2a0ab66 @radare * Honor sdb - file-less database
authored Mar 25, 2012
53 Let's create a database!
54
55 $ sdb d hello=world
56 $ sdb d hello
57 world
58
c01dace @radare Update README and honor 'make -s'
authored Mar 28, 2013
59 Using arrays (>=0.6):
60
0b530d6 @radare Use [] instead of () for array queries and mkdir bugfix
authored Jan 30, 2014
61 $ sdb - '[]list=1,2' '[0]list' '[0]list=foo' '[]list' '[+1]list=bar'
c01dace @radare Update README and honor 'make -s'
authored Mar 28, 2013
62 1
63 foo
64 2
65
2a0ab66 @radare * Honor sdb - file-less database
authored Mar 25, 2012
66 Let's play with json:
67
68 $ sdb d g='{"foo":1,"bar":{"cow":3}}'
8a977e6 @radare Fix examples in README
authored Jun 30, 2014
69 $ sdb d g:bar.cow
2a0ab66 @radare * Honor sdb - file-less database
authored Mar 25, 2012
70 3
8a977e6 @radare Fix examples in README
authored Jun 30, 2014
71 $ sdb - user='{"id":123}' user:id=99 user:id
c01dace @radare Update README and honor 'make -s'
authored Mar 28, 2013
72 99
2a0ab66 @radare * Honor sdb - file-less database
authored Mar 25, 2012
73
c01dace @radare Update README and honor 'make -s'
authored Mar 28, 2013
74 Using the commandline without any disk database:
75
76 $ sdb - foo=bar foo a=3 +a -a
77 bar
78 4
79 3
2a0ab66 @radare * Honor sdb - file-less database
authored Mar 25, 2012
80
81 $ sdb -
82 foo=bar
83 foo
84 bar
85 a=3
86 +a
87 4
88 -a
c01dace @radare Update README and honor 'make -s'
authored Mar 28, 2013
89 3
2a0ab66 @radare * Honor sdb - file-less database
authored Mar 25, 2012
90
91 Remove the database
92
c01dace @radare Update README and honor 'make -s'
authored Mar 28, 2013
93 $ rm -f d
Something went wrong with that request. Please try again.