antares/src/common/customizations/postgresql.ts

78 lines
1.9 KiB
TypeScript
Raw Normal View History

2022-05-10 12:57:25 +02:00
import { Customizations } from '../interfaces/customizations';
import { defaults } from './defaults';
import postgresqlTypes from '../data-types/postgresql';
2022-05-10 12:57:25 +02:00
export const customizations: Customizations = {
...defaults,
// Defaults
defaultPort: 5432,
defaultUser: 'postgres',
defaultDatabase: 'postgres',
dataTypes: postgresqlTypes,
indexTypes: [
'PRIMARY',
'INDEX',
'UNIQUE'
],
foreignActions: [
'RESTRICT',
'CASCADE',
'SET NULL',
'NO ACTION'
],
// Core
database: true,
sslConnection: true,
sshConnection: true,
cancelQueries: true,
// Tools
processesList: true,
// Structure
schemas: true,
tables: true,
2021-03-31 16:54:06 +02:00
views: true,
triggers: true,
2021-06-26 16:36:05 +02:00
triggerFunctions: true,
routines: true,
functions: true,
// Settings
elementsWrapper: '"',
stringsWrapper: '\'',
2021-03-28 11:55:15 +02:00
tableAdd: true,
2021-03-31 16:54:06 +02:00
viewAdd: true,
2021-06-26 16:36:05 +02:00
triggerAdd: true,
triggerFunctionAdd: true,
routineAdd: true,
functionAdd: true,
schemaDrop: true,
2022-03-21 18:32:45 +01:00
schemaExport: true,
schemaImport: true,
databaseEdit: false,
2021-03-25 18:33:29 +01:00
tableSettings: true,
2021-03-31 16:54:06 +02:00
viewSettings: true,
triggerSettings: true,
triggerFunctionSettings: true,
routineSettings: true,
functionSettings: true,
indexes: true,
foreigns: true,
2021-03-25 18:33:29 +01:00
nullable: true,
tableArray: true,
procedureSql: '$procedure$\r\n\r\n$procedure$',
procedureContext: true,
procedureLanguage: true,
functionSql: '$function$\r\n\r\n$function$',
triggerFunctionSql: '$function$\r\nBEGIN\r\n\r\nEND\r\n$function$',
triggerFunctionlanguages: ['plpgsql'],
functionContext: true,
functionLanguage: true,
2021-06-26 16:36:05 +02:00
triggerSql: 'EXECUTE PROCEDURE ',
triggerStatementInCreation: true,
triggerMultipleEvents: true,
triggerTableInName: true,
triggerOnlyRename: false,
triggerEnableDisable: true,
languages: ['sql', 'plpgsql', 'c', 'internal'],
readOnlyMode: true
};