Index of /~seanius/dpkg-sqlite

Icon  Name                    Last modified      Size  Description
[DIR] Parent Directory - [   ] Makefile 01-Apr-2007 00:39 263 [TXT] README.txt 01-Apr-2007 00:51 754 [TXT] gen_db.py 01-Apr-2007 00:40 1.5K [TXT] libpoc.c 01-Apr-2007 00:35 2.4K [TXT] libpoc.h 01-Apr-2007 00:20 652 [TXT] poc.c 01-Apr-2007 00:32 799 [   ] poc.o 31-Mar-2007 23:18 4.1K [   ] schema-simple.sql 31-Mar-2007 22:16 269
hey!

this is a quick proof-of-concept to illustrate the idea of using
something like sqlite3 for caching various dpkg data.

to try it out, you ought to just be able to run "make", assuming you
have the sqlite3 development libraries available.

files:

- simple-schema.sql: a very simple schema.  no attempt made at normalizing
  data etc, since hey, this is just a proof of concept.
- gen_db.py: a small python script to generate a database from your
  running system
- libpoc.h: a simple and clean header file which could be also be
  externally used by other software
- libpoc.c: the implementation
- poc.c: the poc executable.  it doesn't waste any time parsing arguments,
  and instead tries both a "dpkg -L" type query and a "dpkg -S" type query.