radare2/libr/db
2014-05-03 01:27:10 +02:00
..
t Remove r_list_destroy, replaced it by r_list_purge 2014-05-03 01:27:10 +02:00
db.c more calloc! 2014-03-26 22:29:09 +01:00
Jamroot Add some Jam files and merge rsign into ranal 2013-12-31 05:30:39 +01:00
Makefile Deprecate RPair API and ?k. Use SDB and integrate it with 'k' 2014-03-07 01:26:11 +01:00
r.mk Fix android build and add r_core->anal_define api 2012-09-03 01:27:52 +02:00
README
table.c Fix fcn lines in disasm, minor fix in meta 2012-12-06 03:11:40 +01:00
TODO

+------+
| 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);
}