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



                     


               
                     

                      
 
 
                            
                              
                             


                             


                        


                          
                                                 

                                                   
 



             
 
#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()
{
}