Nut  0.1
sqlservergenerator.h
1 /**************************************************************************
2 **
3 ** This file is part of Nut project.
4 ** https://github.com/HamedMasafi/Nut
5 **
6 ** Nut is free software: you can redistribute it and/or modify
7 ** it under the terms of the GNU Lesser General Public License as published by
8 ** the Free Software Foundation, either version 3 of the License, or
9 ** (at your option) any later version.
10 **
11 ** Nut is distributed in the hope that it will be useful,
12 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
13 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 ** GNU Lesser General Public License for more details.
15 **
16 ** You should have received a copy of the GNU Lesser General Public License
17 ** along with Nut. If not, see <http://www.gnu.org/licenses/>.
18 **
19 **************************************************************************/
20 
21 #ifndef SQLSERVERGENERATOR_H
22 #define SQLSERVERGENERATOR_H
23 
24 #include <QtCore/qglobal.h>
25 #include "sqlgeneratorbase_p.h"
26 
27 QT_BEGIN_NAMESPACE
28 
29 class SqlServerGenerator : public SqlGeneratorBase
30 {
31 public:
32  SqlServerGenerator(Database *parent = 0);
33 
34  QString masterDatabaseName(QString databaseName);
35 
36  QString fieldType(FieldModel *field);
37  QString diff(FieldModel *oldField, FieldModel *newField);
38 
39  QString escapeValue(const QVariant &v) const;
40 };
41 
42 QT_END_NAMESPACE
43 
44 #endif // SQLSERVERGENERATOR_H