radare2/libr/db
pancake 8def2767f3 * Initial quick-and-dirty implementation of backtrace
- Using r_list and so on
* Add 'pm' print command using print_format()
* Change color of nops and end-of-block-split lines
* More random syntax fixes
2010-03-01 10:49:04 +01:00
..
t * Many bug fixes for the build. Oops 2010-01-15 01:56:43 +01:00
db.c * Initial quick-and-dirty implementation of backtrace 2010-03-01 10:49:04 +01:00
Makefile * Initial vapi for r_db 2009-07-21 22:59:34 +00:00
README * Added r_db_delete() method in r_db api 2009-06-18 13:10:26 +00:00
table.c * Do not pass CFLAGS when linking asm/t/fastcall 2009-09-08 01:08:46 +00:00
TODO * Added basic working example in swig-python for r_util 2009-12-22 13:27:43 +01:00

+------+
| r.db | Simple and performance-friendly relational database
+------+

The database of r.db is based on index tables of key-size depth.
The key is the index of the key-bucket array which opens the search
space to a single key.

Items are directly sorted

  [255] key buckets
    |
    `-> [0..255]           -----.
         |     \                |
         |      \               |
     [0..255]  [0..255]         |
         |        |             |-- size of key (depth)
     [0..255]    ...            |
         |                      |
     [0..255]              -----'

OPERATIONS
==========

   ADD

   DELETE

     r_db_delete_by_key(db, K_ID, &tmp) # specify more than one key?

   ITERATE
   

+----------+
| r.db.sql | The SQL frontend for r.db
+----------+

 - Compiles simple SQL-like sentences into a set of r.db queries

void **iter = r_db_sql_query("select * from flags");
while(r_db_ptr(iter)) {
	struct foo_t *foo = r_db_ptr(iter);
	iter = r_db_ptr_next(iter);
}