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.js
Original file line number Diff line number Diff line change
Expand Up @@ -646,6 +646,14 @@ const ddlProvider = (baseProvider, options, app) => {
return commentIfDeactivated(statement, data, isPartOfLine);
},

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

prepareName(name) {
return getTableName(name);
},

// * DROP statements for alter script from delta model
dropSchema(name) {
return assignTemplates(templates.dropSchema, {
Expand Down
7 changes: 6 additions & 1 deletion localization/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -163,5 +163,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"
}
128 changes: 125 additions & 3 deletions properties_pane/container_level/containerLevelConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
* Copyright © 2016-2017 by IntegrIT S.A. dba Hackolade. All rights reserved.
*
* The copyright to the computer software herein is the property of IntegrIT S.A.
* The software may be used and/or copied only with the written permission of
* IntegrIT S.A. or in accordance with the terms and conditions stipulated in
* the agreement/contract under which the software has been supplied.
* The software may be used and/or copied only with the written permission of
* IntegrIT S.A. or in accordance with the terms and conditions stipulated in
* the agreement/contract under which the software has been supplied.


In order to define custom properties for any object's properties pane, you may copy/paste from the following,
Expand Down Expand Up @@ -71,6 +71,128 @@ making sure that you maintain a proper JSON format.
"propertyKeyword": "ifNotExist",
"propertyType": "checkbox"
},
{
"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 @@ -387,6 +387,52 @@ making sure that you maintain a proper JSON format.
}
]
},
{
"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
Loading