diff --git a/packages/cli/package.json b/packages/cli/package.json index 4749a2ed0d..3726223d14 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -106,7 +106,7 @@ "n8n-workflow": "~0.35.0", "oauth-1.0a": "^2.2.6", "open": "^7.0.0", - "pg": "^7.11.0", + "pg": "^8.3.0", "request-promise-native": "^1.0.7", "sqlite3": "^4.2.0", "sse-channel": "^3.1.1", diff --git a/packages/nodes-base/nodes/QuestDb/QuestDb.node.ts b/packages/nodes-base/nodes/QuestDb/QuestDb.node.ts index 5c014921ee..dbdfd6445f 100644 --- a/packages/nodes-base/nodes/QuestDb/QuestDb.node.ts +++ b/packages/nodes-base/nodes/QuestDb/QuestDb.node.ts @@ -1,10 +1,14 @@ import { IExecuteFunctions } from 'n8n-core'; -import { IDataObject, INodeExecutionData, INodeType, INodeTypeDescription } from 'n8n-workflow'; +import { + IDataObject, + INodeExecutionData, + INodeType, + INodeTypeDescription, +} from 'n8n-workflow'; import * as pgPromise from 'pg-promise'; -import { pgInsert, pgQuery, pgUpdate } from '../Postgres/Postgres.node.functions'; -import { table } from 'console'; +import { pgQuery } from '../Postgres/Postgres.node.functions'; export class QuestDb implements INodeType { description: INodeTypeDescription = { @@ -59,7 +63,9 @@ export class QuestDb implements INodeType { }, displayOptions: { show: { - operation: ['executeQuery'], + operation: [ + 'executeQuery', + ], }, }, default: '', @@ -77,7 +83,9 @@ export class QuestDb implements INodeType { type: 'string', displayOptions: { show: { - operation: ['insert'], + operation: [ + 'insert', + ], }, }, default: 'public', @@ -90,7 +98,9 @@ export class QuestDb implements INodeType { type: 'string', displayOptions: { show: { - operation: ['insert'], + operation: [ + 'insert', + ], }, }, default: '', @@ -103,7 +113,9 @@ export class QuestDb implements INodeType { type: 'string', displayOptions: { show: { - operation: ['insert'], + operation: [ + 'insert', + ], }, }, default: '', @@ -117,57 +129,14 @@ export class QuestDb implements INodeType { type: 'string', displayOptions: { show: { - operation: ['insert'], + operation: [ + 'insert', + ], }, }, default: '*', description: 'Comma separated list of the fields that the operation will return', }, - - // ---------------------------------- - // update - // ---------------------------------- - // { - // displayName: 'Table', - // name: 'table', - // type: 'string', - // displayOptions: { - // show: { - // operation: ['update'], - // }, - // }, - // default: '', - // required: true, - // description: 'Name of the table in which to update data in', - // }, - // { - // displayName: 'Update Key', - // name: 'updateKey', - // type: 'string', - // displayOptions: { - // show: { - // operation: ['update'], - // }, - // }, - // default: 'id', - // required: true, - // description: - // 'Name of the property which decides which rows in the database should be updated. Normally that would be "id".', - // }, - // { - // displayName: 'Columns', - // name: 'columns', - // type: 'string', - // displayOptions: { - // show: { - // operation: ['update'], - // }, - // }, - // default: '', - // placeholder: 'name,description', - // description: - // 'Comma separated list of the properties which should used as columns for rows to update.', - // }, ], }; diff --git a/packages/nodes-base/package.json b/packages/nodes-base/package.json index 15e3fd8461..e6931f81ef 100644 --- a/packages/nodes-base/package.json +++ b/packages/nodes-base/package.json @@ -378,7 +378,8 @@ "n8n-core": "~0.39.0", "nodemailer": "^6.4.6", "pdf-parse": "^1.1.1", - "pg-promise": "^9.0.3", + "pg": "^8.3.0", + "pg-promise": "^10.5.8", "redis": "^2.8.0", "request": "^2.88.2", "rhea": "^1.0.11",