about summary refs log tree commit diff
path: root/src/globals.cc
blob: f34f8f1029c591fc12068b18925f51fee9bd2ac2 (plain) (blame)
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
#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()
{
}