Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions forward_engineering/ddlProvider/ddlProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -531,5 +531,13 @@ module.exports = (baseProvider, options, app) => {
commentIfDeactivated(statement, data, isPartOfLine) {
return statement;
},

commentStatement(statement) {
return commentIfDeactivated(statement, { isActivated: false });
},

prepareName(name) {
return wrapInQuotes(name);
},
};
};
7 changes: 6 additions & 1 deletion localization/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -158,5 +158,10 @@
"MODAL_WINDOW___OPTIONS_DISPLAY_ERD_V_ENTITY_BOX_CONTENT": "Display of table box content",
"MODAL_WINDOW___OPTIONS_DISPLAY_ERD_V_FIELDS": "Columns",
"MODAL_WINDOW___OPTIONS_DISPLAY_REQUIRED_ATTRIBUTES": "Required columns",
"MODAL_WINDOW___OPTIONS_DISPLAY_NULLABLE_ATTRIBUTES": "Nullable columns"
"MODAL_WINDOW___OPTIONS_DISPLAY_NULLABLE_ATTRIBUTES": "Nullable columns",

"CUSTOM_SCRIPT_CONTAINER_VAR_NAME": "Schema name",
"CUSTOM_SCRIPT_CONTAINER_VAR": "schemaName",
"CUSTOM_SCRIPT_ENTITY_VAR_NAME": "Table name",
"CUSTOM_SCRIPT_ENTITY_VAR": "tableName"
}
122 changes: 122 additions & 0 deletions properties_pane/container_level/containerLevelConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,128 @@ making sure that you maintain a proper JSON format.
"propertyType": "select",
"options": ["", "NONE", "CHANGES"]
},
{
"propertyName": "Custom scripts",
"propertyType": "block",
"propertyKeyword": "customScripts",
"propertyTooltip": "",
"structure": [
{
"propertyName": "Before CREATE SCHEMA",
"propertyKeyword": "beforeCreateContainer",
"propertyType": "block",
"propertyTooltip": "",
"structure": [
{
"propertyName": "Script",
"propertyKeyword": "script",
"propertyType": "details",
"markdown": false,
"template": "codeEditor",
"templateOptions": {
"editorDialect": "sql",
"customScriptVariables": true
}
}
]
},
{
"propertyName": "After CREATE SCHEMA",
"propertyKeyword": "afterCreateContainer",
"propertyType": "block",
"propertyTooltip": "",
"structure": [
{
"propertyName": "Script",
"propertyKeyword": "script",
"propertyType": "details",
"markdown": false,
"template": "codeEditor",
"templateOptions": {
"editorDialect": "sql",
"customScriptVariables": true
}
}
]
},
{
"propertyName": "Before each CREATE TABLE",
"propertyKeyword": "beforeCreateEntity",
"propertyType": "block",
"propertyTooltip": "",
"structure": [
{
"propertyName": "Script",
"propertyKeyword": "script",
"propertyType": "details",
"markdown": false,
"template": "codeEditor",
"templateOptions": {
"editorDialect": "sql",
"customScriptVariables": true
}
}
]
},
{
"propertyName": "After each CREATE TABLE",
"propertyKeyword": "afterCreateEntity",
"propertyType": "block",
"propertyTooltip": "",
"structure": [
{
"propertyName": "Script",
"propertyKeyword": "script",
"propertyType": "details",
"markdown": false,
"template": "codeEditor",
"templateOptions": {
"editorDialect": "sql",
"customScriptVariables": true
}
}
]
},
{
"propertyName": "Before each CREATE VIEW",
"propertyKeyword": "beforeCreateView",
"propertyType": "block",
"propertyTooltip": "",
"structure": [
{
"propertyName": "Script",
"propertyKeyword": "script",
"propertyType": "details",
"markdown": false,
"template": "codeEditor",
"templateOptions": {
"editorDialect": "sql",
"customScriptVariables": true
}
}
]
},
{
"propertyName": "After each CREATE VIEW",
"propertyKeyword": "afterCreateView",
"propertyType": "block",
"propertyTooltip": "",
"structure": [
{
"propertyName": "Script",
"propertyKeyword": "script",
"propertyType": "details",
"markdown": false,
"template": "codeEditor",
"templateOptions": {
"editorDialect": "sql",
"customScriptVariables": true
}
}
]
}
]
},
{
"propertyName": "Remarks",
"propertyKeyword": "comments",
Expand Down
46 changes: 46 additions & 0 deletions properties_pane/entity_level/entityLevelConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,52 @@ making sure that you maintain a proper JSON format.
"propertyTooltip": "Enter the name of an existing tablespace location for the table",
"propertyType": "text"
},
{
"propertyName": "Custom scripts",
"propertyType": "block",
"propertyKeyword": "customScripts",
"propertyTooltip": "",
"structure": [
{
"propertyName": "Before CREATE TABLE",
"propertyKeyword": "beforeCreateEntity",
"propertyType": "block",
"propertyTooltip": "",
"structure": [
{
"propertyName": "Script",
"propertyKeyword": "script",
"propertyType": "details",
"markdown": false,
"template": "codeEditor",
"templateOptions": {
"editorDialect": "sql",
"customScriptVariables": true
}
}
]
},
{
"propertyName": "After CREATE TABLE",
"propertyKeyword": "afterCreateEntity",
"propertyType": "block",
"propertyTooltip": "",
"structure": [
{
"propertyName": "Script",
"propertyKeyword": "script",
"propertyType": "details",
"markdown": false,
"template": "codeEditor",
"templateOptions": {
"editorDialect": "sql",
"customScriptVariables": true
}
}
]
}
]
},
{
"propertyName": "Remarks",
"propertyKeyword": "comments",
Expand Down
160 changes: 160 additions & 0 deletions properties_pane/model_level/modelLevelConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,166 @@ making sure that you maintain a proper JSON format.
]
}
},
{
"propertyName": "Custom scripts",
"propertyType": "block",
"propertyKeyword": "customScripts",
"propertyTooltip": "",
"structure": [
{
"propertyName": "Header script",
"propertyKeyword": "headerScript",
"propertyType": "block",
"propertyTooltip": "",
"structure": [
{
"propertyName": "Script",
"propertyKeyword": "script",
"propertyType": "details",
"markdown": false,
"template": "codeEditor",
"templateOptions": {
"editorDialect": "sql",
"customScriptVariables": true
}
}
]
},
{
"propertyName": "Footer script",
"propertyKeyword": "footerScript",
"propertyType": "block",
"propertyTooltip": "",
"structure": [
{
"propertyName": "Script",
"propertyKeyword": "script",
"propertyType": "details",
"markdown": false,
"template": "codeEditor",
"templateOptions": {
"editorDialect": "sql",
"customScriptVariables": true
}
}
]
},
{
"propertyName": "Before each CREATE SCHEMA",
"propertyKeyword": "beforeCreateContainer",
"propertyType": "block",
"propertyTooltip": "",
"structure": [
{
"propertyName": "Script",
"propertyKeyword": "script",
"propertyType": "details",
"markdown": false,
"template": "codeEditor",
"templateOptions": {
"editorDialect": "sql",
"customScriptVariables": true
}
}
]
},
{
"propertyName": "After each CREATE SCHEMA",
"propertyKeyword": "afterCreateContainer",
"propertyType": "block",
"propertyTooltip": "",
"structure": [
{
"propertyName": "Script",
"propertyKeyword": "script",
"propertyType": "details",
"markdown": false,
"template": "codeEditor",
"templateOptions": {
"editorDialect": "sql",
"customScriptVariables": true
}
}
]
},
{
"propertyName": "Before each CREATE TABLE",
"propertyKeyword": "beforeCreateEntity",
"propertyType": "block",
"propertyTooltip": "",
"structure": [
{
"propertyName": "Script",
"propertyKeyword": "script",
"propertyType": "details",
"markdown": false,
"template": "codeEditor",
"templateOptions": {
"editorDialect": "sql",
"customScriptVariables": true
}
}
]
},
{
"propertyName": "After each CREATE TABLE",
"propertyKeyword": "afterCreateEntity",
"propertyType": "block",
"propertyTooltip": "",
"structure": [
{
"propertyName": "Script",
"propertyKeyword": "script",
"propertyType": "details",
"markdown": false,
"template": "codeEditor",
"templateOptions": {
"editorDialect": "sql",
"customScriptVariables": true
}
}
]
},
{
"propertyName": "Before each CREATE VIEW",
"propertyKeyword": "beforeCreateView",
"propertyType": "block",
"propertyTooltip": "",
"structure": [
{
"propertyName": "Script",
"propertyKeyword": "script",
"propertyType": "details",
"markdown": false,
"template": "codeEditor",
"templateOptions": {
"editorDialect": "sql",
"customScriptVariables": true
}
}
]
},
{
"propertyName": "After each CREATE VIEW",
"propertyKeyword": "afterCreateView",
"propertyType": "block",
"propertyTooltip": "",
"structure": [
{
"propertyName": "Script",
"propertyKeyword": "script",
"propertyType": "details",
"markdown": false,
"template": "codeEditor",
"templateOptions": {
"editorDialect": "sql",
"customScriptVariables": true
}
}
]
}
]
},
{
"propertyName": "Comments",
"propertyKeyword": "comments",
Expand Down
Loading