aboutsummaryrefslogtreecommitdiff
path: root/src/globals.cc
blob: f21820f59771d3ca031ca78e12a2496b8b995fb9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#include "globals.hh"
#include "db.hh"


Database nixDB;


TableId dbPath2Id;
TableId dbId2Paths;
TableId dbSuccessors;
TableId dbSubstitutes;


string nixStore = "/UNINIT";
string nixDataDir = "/UNINIT";
string nixLogDir = "/UNINIT";
string nixDBPath = "/UNINIT";


bool keepFailed = false;


void openDB()
{
    nixDB.open(nixDBPath);
    dbPath2Id = nixDB.openTable("path2id");
    dbId2Paths = nixDB.openTable("id2paths");
    dbSuccessors = nixDB.openTable("successors");
    dbSubstitutes = nixDB.openTable("substitutes");
}


void initDB()
{
}