Files
sqlitebrowser/src/ExportSqlDialog.h
Martin Kleusberg 037b3c0113 Some improvements to the Export SQL dialog
When possible, don't write 'CREATE TABLE/VIEW/... `name`' but 'CREATE
TABLE/VIEW/... IF NOT EXISTS `name`' to the file.

Add an option to add DROP TABLE statements before each create statement.
This needs to be enhanced to apply to views, indices, and triggers as
well. See issue #629.

Clean up code.
2017-05-12 15:38:46 +02:00

32 lines
518 B
C++

#ifndef ExportSqlDialog_H
#define ExportSqlDialog_H
#include <QDialog>
class DBBrowserDB;
namespace Ui {
class ExportSqlDialog;
}
class ExportSqlDialog : public QDialog
{
Q_OBJECT
public:
explicit ExportSqlDialog(DBBrowserDB* db, QWidget* parent = 0, const QString& selection = "");
~ExportSqlDialog();
private slots:
virtual void accept();
void doSelectAll();
void doDeselectAll();
void whatChanged(int index);
private:
Ui::ExportSqlDialog* ui;
DBBrowserDB* pdb;
};
#endif