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