package mosaik;

import java.io.File;
import java.io.IOException;

import dataBase.DataBase;

import util.simpleIO.Out;

public class _MakeDataBase_KRISI {

	public static File dir = new File("D:/_testData_/12GB/1");
	public static File dbFile = new File(dir.getAbsolutePath()+"/DataBase0.db");
	
	/**
	 * @param args
	 * @throws IOException 
	 * @throws ClassNotFoundException 
	 */
	public static void main(String[] args) throws IOException, ClassNotFoundException {

		//File dir = new File("D:/_testData_/12GB/1");
		//File dbFile = new File(dir.getAbsolutePath()+"/DataBase0.db");
		
		Out.pl("Making DB:");
		DataBase db = MosaikFunctions.makeDatabase(dir);
		Out.pl("DB made:"+db);
		
		MosaikFunctions.storeDatabase(db, dbFile);
		Out.pl("DB stored.");
		
		//DataBase dbCopy = MosaikFunctions.loadDatabase(dbFile);
		//Out.pl("DB loaded again: "+dbCopy);
	}

}
