simplifies stuff. * The format of Nix expressions and the database schema changed because of this, so it's best to delete old Nix installations.
34 lines
494 B
C++
34 lines
494 B
C++
#include "globals.hh"
|
|
#include "db.hh"
|
|
|
|
|
|
Database nixDB;
|
|
|
|
|
|
TableId dbValidPaths;
|
|
TableId dbSuccessors;
|
|
TableId dbSubstitutes;
|
|
|
|
|
|
string nixStore = "/UNINIT";
|
|
string nixDataDir = "/UNINIT";
|
|
string nixLogDir = "/UNINIT";
|
|
string nixDBPath = "/UNINIT";
|
|
|
|
|
|
bool keepFailed = false;
|
|
|
|
|
|
void openDB()
|
|
{
|
|
nixDB.open(nixDBPath);
|
|
dbValidPaths = nixDB.openTable("validpaths");
|
|
dbSuccessors = nixDB.openTable("successors");
|
|
dbSubstitutes = nixDB.openTable("substitutes");
|
|
}
|
|
|
|
|
|
void initDB()
|
|
{
|
|
}
|