view Apps/DeDupe.cpp @ 109:6cf5eb5b0be1

Embed batch operations in BEGIN-END TRANSACTION for speed improvement.
author Tom Fredrik Blenning Klaussen <bfg@bfgconsult.no>
date Tue, 18 Feb 2014 19:41:23 +0100
parents f711ddb56ae7
children
line wrap: on
line source

#include "DataController.hpp"

#include "Exception/Exception.hpp"

#include <QtGui/QApplication>

#include <iostream>

int main(int argc, char *argv[]) {

  try {
    QApplication app(argc, argv);

    DataController dc(true);

    return app.exec();
  }
  catch (Exception& e) {
    std::cerr << "Unrecoverable error: " << e.toString().toStdString();
    exit(1);
  }

}