
December 13th, 2012, 11:08 AM
|
 |
Contributing User
|
|
|
|
I'd use sqlite directly through a subprocess and parse the information myself. Python almost certainly has a library to simplify this.
Code:
$ sqlite3 ~/.config/chromium/Default/databases/Databases.db
sqlite> .help
(omitted)
sqlite> .tables
Databases Quota meta
sqlite> .schema Databases
CREATE TABLE Databases (id INTEGER PRIMARY KEY AUTOINCREMENT, origin TEXT NOT NULL, name TEXT NOT NULL, description TEXT NOT NULL, estimated_size INTEGER NOT NULL);
CREATE INDEX origin_index ON Databases (origin);
CREATE UNIQUE INDEX unique_index ON Databases (origin, name);
sqlite> select * from Databases;
(omitted)
sqlite> .dump Databases
(omitted)
__________________
[code] Code tags[/code] are essential for python code!
Last edited by b49P23TIvg : December 13th, 2012 at 11:10 AM.
|