package mosaik;

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

import dataBase.DataBase;

import util.simpleIO.Out;

public class _MakeDataBase_ {

	/**
	 * @param args
	 * @throws IOException 
	 */
	public static void main(String[] args) throws IOException {

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

}
