mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-10 22:54:05 -08:00
0eb4d9fc16
* fix(Postgres Node): Always return TIMESTAMP and TIMESTAMPZ as ISO string * Fix linting issues
43 lines
897 B
TypeScript
43 lines
897 B
TypeScript
/* 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'],
|
|
version: [2, 2.1],
|
|
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,
|
|
],
|
|
};
|