mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 04:34:06 -08:00
⚡ Small improvements and fix for Postgres & QuestDB
This commit is contained in:
parent
a46a6fa00c
commit
604d8eea89
|
@ -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",
|
||||
|
|
|
@ -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.',
|
||||
// },
|
||||
],
|
||||
};
|
||||
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue