mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 02:50:46 -06:00
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.
32 lines
518 B
C++
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
|