For now the create is still single line. Either complex query is required to get details for custom generator or we need to format after the fact. Close #12
21 lines
825 B
C++
21 lines
825 B
C++
#ifndef SQLFORMATTINGUTILS_H
|
|
#define SQLFORMATTINGUTILS_H
|
|
|
|
#include <QString>
|
|
|
|
class PgClass;
|
|
class PgConstraint;
|
|
class PgDatabaseCatalog;
|
|
class PgIndex;
|
|
|
|
bool identNeedsQuotes(QString ident);
|
|
QString quoteIdent(QString ident);
|
|
|
|
QString genFQTableName(const PgDatabaseCatalog &catalog, const PgClass &cls);
|
|
QString getDropConstraintDefinition(const PgDatabaseCatalog &catalog, const PgConstraint &constraint);
|
|
QString getConstraintDefinition(const PgDatabaseCatalog &catalog, const PgConstraint &constraint);
|
|
QString getIndexDefinition(const PgDatabaseCatalog &catalog, const PgIndex &index);
|
|
QString getDropIndexDefinition(const PgDatabaseCatalog &catalog, const PgIndex &index);
|
|
QString getForeignKeyConstraintDefinition(const PgDatabaseCatalog &catalog, const PgConstraint &constraint);
|
|
|
|
#endif // SQLFORMATTINGUTILS_H
|