2023-04-03 08:18:01 -07:00
|
|
|
/* eslint-disable n8n-nodes-base/node-filename-against-convention */
|
|
|
|
import type { INodeTypeDescription } from 'n8n-workflow';
|
|
|
|
|
|
|
|
import * as database from './database/Database.resource';
|
|
|
|
|
|
|
|
export const versionDescription: INodeTypeDescription = {
|
|
|
|
displayName: 'Postgres',
|
|
|
|
name: 'postgres',
|
|
|
|
icon: 'file:postgres.svg',
|
|
|
|
group: ['input'],
|
2024-07-31 00:39:37 -07:00
|
|
|
version: [2, 2.1, 2.2, 2.3, 2.4, 2.5],
|
2023-04-03 08:18:01 -07:00
|
|
|
subtitle: '={{ $parameter["operation"] }}',
|
|
|
|
description: 'Get, add and update data in Postgres',
|
|
|
|
defaults: {
|
|
|
|
name: 'Postgres',
|
|
|
|
},
|
|
|
|
inputs: ['main'],
|
|
|
|
outputs: ['main'],
|
|
|
|
credentials: [
|
|
|
|
{
|
|
|
|
name: 'postgres',
|
|
|
|
required: true,
|
|
|
|
testedBy: 'postgresConnectionTest',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
properties: [
|
|
|
|
{
|
|
|
|
displayName: 'Resource',
|
|
|
|
name: 'resource',
|
|
|
|
type: 'hidden',
|
|
|
|
noDataExpression: true,
|
|
|
|
options: [
|
|
|
|
{
|
|
|
|
name: 'Database',
|
|
|
|
value: 'database',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
default: 'database',
|
|
|
|
},
|
|
|
|
...database.description,
|
|
|
|
],
|
|
|
|
};
|