Created IndexModel for displaying the indexes on a table. Constraints can now show the SQL to drop and create them.
The keyword list is now directly based of the official keyword list from postgresql.
This commit is contained in:
parent
b436814eb5
commit
97d4e2a1a4
24 changed files with 754 additions and 228 deletions
17
pglablib/SqlFormattingUtils.h
Normal file
17
pglablib/SqlFormattingUtils.h
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#ifndef SQLFORMATTINGUTILS_H
|
||||
#define SQLFORMATTINGUTILS_H
|
||||
|
||||
#include <QString>
|
||||
|
||||
|
||||
class PgConstraint;
|
||||
class PgDatabaseCatalog;
|
||||
|
||||
bool identNeedsQuotes(QString ident);
|
||||
|
||||
QString getDropConstraintDefinition(const PgDatabaseCatalog &catalog, const PgConstraint &constraint);
|
||||
QString getConstraintDefinition(const PgDatabaseCatalog &catalog, const PgConstraint &constraint);
|
||||
|
||||
QString getForeignKeyConstraintDefinition(const PgDatabaseCatalog &catalog, const PgConstraint &constraint);
|
||||
|
||||
#endif // SQLFORMATTINGUTILS_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue