2023-04-12 07:24:17 -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: 'MySQL',
|
|
|
|
name: 'mySql',
|
|
|
|
icon: 'file:mysql.svg',
|
|
|
|
group: ['input'],
|
2023-08-25 08:38:09 -07:00
|
|
|
version: [2, 2.1, 2.2],
|
2023-04-12 07:24:17 -07:00
|
|
|
subtitle: '={{ $parameter["operation"] }}',
|
|
|
|
description: 'Get, add and update data in MySQL',
|
|
|
|
defaults: {
|
|
|
|
name: 'MySQL',
|
|
|
|
},
|
|
|
|
inputs: ['main'],
|
|
|
|
outputs: ['main'],
|
|
|
|
credentials: [
|
|
|
|
{
|
|
|
|
name: 'mySql',
|
|
|
|
required: true,
|
|
|
|
testedBy: 'mysqlConnectionTest',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
properties: [
|
|
|
|
{
|
|
|
|
displayName: 'Resource',
|
|
|
|
name: 'resource',
|
|
|
|
type: 'hidden',
|
|
|
|
noDataExpression: true,
|
|
|
|
options: [
|
|
|
|
{
|
|
|
|
name: 'Database',
|
|
|
|
value: 'database',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
default: 'database',
|
|
|
|
},
|
|
|
|
...database.description,
|
|
|
|
],
|
|
|
|
};
|