2003-06-16 15:33:38 +02:00
|
|
|
#include "globals.hh"
|
|
|
|
#include "db.hh"
|
|
|
|
|
|
|
|
|
2003-07-31 15:47:13 +02:00
|
|
|
Database nixDB;
|
|
|
|
|
|
|
|
|
2003-07-31 18:05:35 +02:00
|
|
|
TableId dbPath2Id;
|
|
|
|
TableId dbId2Paths;
|
|
|
|
TableId dbSuccessors;
|
|
|
|
TableId dbSubstitutes;
|
2003-07-10 15:41:28 +02:00
|
|
|
|
2003-06-16 15:33:38 +02:00
|
|
|
|
2003-06-27 15:55:12 +02:00
|
|
|
string nixStore = "/UNINIT";
|
2003-07-10 15:41:28 +02:00
|
|
|
string nixDataDir = "/UNINIT";
|
2003-06-16 15:33:38 +02:00
|
|
|
string nixLogDir = "/UNINIT";
|
2003-07-31 15:47:13 +02:00
|
|
|
string nixDBPath = "/UNINIT";
|
|
|
|
|
|
|
|
|
|
|
|
void openDB()
|
|
|
|
{
|
|
|
|
nixDB.open(nixDBPath);
|
2003-07-31 18:05:35 +02:00
|
|
|
dbPath2Id = nixDB.openTable("path2id");
|
|
|
|
dbId2Paths = nixDB.openTable("id2paths");
|
|
|
|
dbSuccessors = nixDB.openTable("successors");
|
|
|
|
dbSubstitutes = nixDB.openTable("substitutes");
|
2003-07-31 15:47:13 +02:00
|
|
|
}
|
2003-06-16 15:33:38 +02:00
|
|
|
|
|
|
|
|
|
|
|
void initDB()
|
|
|
|
{
|
|
|
|
}
|