Open edit window for SQL query fields (#2188)

This commit is contained in:
Iván Ovejero 2021-09-11 12:58:48 +02:00 committed by GitHub
parent 455db990d6
commit f03833ff25
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 10 additions and 10 deletions

View file

@ -72,7 +72,7 @@ export class CrateDb implements INodeType {
name: 'query',
type: 'string',
typeOptions: {
rows: 5,
alwaysOpenEditWindow: true,
},
displayOptions: {
show: {

View file

@ -91,7 +91,7 @@ export class MicrosoftSql implements INodeType {
name: 'query',
type: 'string',
typeOptions: {
rows: 5,
alwaysOpenEditWindow: true,
},
displayOptions: {
show: {

View file

@ -65,7 +65,7 @@ export class MySql implements INodeType {
name: 'query',
type: 'string',
typeOptions: {
rows: 5,
alwaysOpenEditWindow: true,
},
displayOptions: {
show: {
@ -295,12 +295,12 @@ export class MySql implements INodeType {
const options = this.getNodeParameter('options', 0) as IDataObject;
const insertIgnore = options.ignore as boolean;
const insertPriority = options.priority as string;
const insertSQL = `INSERT ${insertPriority || ''} ${insertIgnore ? 'IGNORE' : ''} INTO ${table}(${columnString}) VALUES ${items.map(item => insertPlaceholder).join(',')};`;
const queryItems = insertItems.reduce((collection, item) => collection.concat(Object.values(item as any)), []); // tslint:disable-line:no-any
const queryResult = await connection.query(insertSQL, queryItems);
returnItems = this.helpers.returnJsonArray(queryResult[0] as unknown as IDataObject);
} catch (error) {
if (this.continueOnFail()) {

View file

@ -65,7 +65,7 @@ export class Postgres implements INodeType {
name: 'query',
type: 'string',
typeOptions: {
rows: 5,
alwaysOpenEditWindow: true,
},
displayOptions: {
show: {

View file

@ -63,7 +63,7 @@ export class QuestDb implements INodeType {
name: 'query',
type: 'string',
typeOptions: {
rows: 5,
alwaysOpenEditWindow: true,
},
displayOptions: {
show: {

View file

@ -72,7 +72,7 @@ export class Snowflake implements INodeType {
name: 'query',
type: 'string',
typeOptions: {
rows: 5,
alwaysOpenEditWindow: true,
},
displayOptions: {
show: {

View file

@ -72,7 +72,7 @@ export class TimescaleDb implements INodeType {
name: 'query',
type: 'string',
typeOptions: {
rows: 5,
alwaysOpenEditWindow: true,
},
displayOptions: {
show: {