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



                     


               
                     
                     
                        
                      
                         
 
 
                            
                              
                             


                             


                        


                          
                                                 
                                                 
                                                        
                                                   
                                                          
 



             
 
#include "globals.hh"
#include "db.hh"


Database nixDB;


TableId dbValidPaths;
TableId dbSuccessors;
TableId dbSuccessorsRev;
TableId dbSubstitutes;
TableId dbSubstitutesRev;


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");
    dbSuccessorsRev = nixDB.openTable("successors-rev");
    dbSubstitutes = nixDB.openTable("substitutes");
    dbSubstitutesRev = nixDB.openTable("substitutes-rev");
}


void initDB()
{
}