about summary refs log blame commit diff
path: root/src/globals.cc
blob: 1ec0c4f9ba210c8868e7b59355120d77840cd5c9 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11



                     


               



                      
 
 
                            
                              
                             





                             



                                                   
 



             
 
#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";


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


void initDB()
{
}