feat(editor): Add SQL editor support (#5517)

This commit is contained in:
Jan Oberhauser
2023-04-25 18:18:27 +02:00
committed by GitHub
parent f9b11c73b9
commit 70aaf24784
15 changed files with 163 additions and 5 deletions

View File

@@ -72,6 +72,10 @@ const versionDescription: INodeTypeDescription = {
displayName: 'Query',
name: 'query',
type: 'string',
typeOptions: {
editor: 'sqlEditor',
sqlDialect: 'mysql',
},
displayOptions: {
show: {
operation: ['executeQuery'],

View File

@@ -21,7 +21,8 @@ const properties: INodeProperties[] = [
description:
"The SQL query to execute. You can use n8n expressions and $1, $2, $3, etc to refer to the 'Query Parameters' set in options below.",
typeOptions: {
rows: 3,
editor: 'sqlEditor',
sqlDialect: 'mysql',
},
hint: 'Prefer using query parameters over n8n expressions to avoid SQL injection attacks',
},