2003-06-16 16:33:38 +03:00
|
|
|
#include "globals.hh"
|
|
|
|
#include "db.hh"
|
|
|
|
|
|
|
|
|
2003-07-08 11:35:06 +03:00
|
|
|
string dbHash2Paths = "hash2paths";
|
2003-07-04 15:18:06 +03:00
|
|
|
string dbSuccessors = "successors";
|
2003-07-10 16:41:28 +03:00
|
|
|
string dbSubstitutes = "substitutes";
|
|
|
|
|
2003-06-16 16:33:38 +03:00
|
|
|
|
2003-06-27 16:55:12 +03:00
|
|
|
string nixStore = "/UNINIT";
|
2003-07-10 16:41:28 +03:00
|
|
|
string nixDataDir = "/UNINIT";
|
2003-06-16 16:33:38 +03:00
|
|
|
string nixLogDir = "/UNINIT";
|
|
|
|
string nixDB = "/UNINIT";
|
|
|
|
|
|
|
|
|
|
|
|
void initDB()
|
|
|
|
{
|
2003-07-08 11:35:06 +03:00
|
|
|
createDB(nixDB, dbHash2Paths);
|
2003-07-04 15:18:06 +03:00
|
|
|
createDB(nixDB, dbSuccessors);
|
2003-07-10 16:41:28 +03:00
|
|
|
createDB(nixDB, dbSubstitutes);
|
2003-06-16 16:33:38 +03:00
|
|
|
}
|