mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-16 09:34:07 -08:00
61e26804ba
* ⚡ enabled array-type * ⚡ await-thenable on * ⚡ ban-types on * ⚡ default-param-last on * ⚡ dot-notation on * ⚡ member-delimiter-style on * ⚡ no-duplicate-imports on * ⚡ no-empty-interface on * ⚡ no-floating-promises on * ⚡ no-for-in-array on * ⚡ no-invalid-void-type on * ⚡ no-loop-func on * ⚡ no-shadow on * ⚡ ban-ts-comment re enabled * ⚡ @typescript-eslint/lines-between-class-members on * address my own comment * @typescript-eslint/return-await on * @typescript-eslint/promise-function-async on * @typescript-eslint/no-unnecessary-boolean-literal-compare on * @typescript-eslint/no-unnecessary-type-assertion on * prefer-const on * @typescript-eslint/prefer-optional-chain on Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
102 lines
1.8 KiB
TypeScript
102 lines
1.8 KiB
TypeScript
import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
|
|
|
export class MicrosoftSql implements ICredentialType {
|
|
name = 'microsoftSql';
|
|
|
|
displayName = 'Microsoft SQL';
|
|
|
|
documentationUrl = 'microsoftSql';
|
|
|
|
properties: INodeProperties[] = [
|
|
{
|
|
displayName: 'Server',
|
|
name: 'server',
|
|
type: 'string',
|
|
default: 'localhost',
|
|
},
|
|
{
|
|
displayName: 'Database',
|
|
name: 'database',
|
|
type: 'string',
|
|
default: 'master',
|
|
},
|
|
{
|
|
displayName: 'User',
|
|
name: 'user',
|
|
type: 'string',
|
|
default: 'sa',
|
|
},
|
|
{
|
|
displayName: 'Password',
|
|
name: 'password',
|
|
type: 'string',
|
|
typeOptions: {
|
|
password: true,
|
|
},
|
|
default: '',
|
|
},
|
|
{
|
|
displayName: 'Port',
|
|
name: 'port',
|
|
type: 'number',
|
|
default: 1433,
|
|
},
|
|
{
|
|
displayName: 'Domain',
|
|
name: 'domain',
|
|
type: 'string',
|
|
default: '',
|
|
},
|
|
{
|
|
displayName: 'TLS',
|
|
name: 'tls',
|
|
type: 'boolean',
|
|
default: true,
|
|
},
|
|
{
|
|
displayName: 'Connect Timeout',
|
|
name: 'connectTimeout',
|
|
type: 'number',
|
|
default: 15000,
|
|
description: 'Connection timeout in ms',
|
|
},
|
|
{
|
|
displayName: 'Request Timeout',
|
|
name: 'requestTimeout',
|
|
type: 'number',
|
|
default: 15000,
|
|
description: 'Request timeout in ms',
|
|
},
|
|
{
|
|
displayName: 'TDS Version',
|
|
name: 'tdsVersion',
|
|
type: 'options',
|
|
options: [
|
|
{
|
|
name: '7_4 (SQL Server 2012 ~ 2019)',
|
|
value: '7_4',
|
|
},
|
|
{
|
|
name: '7_3_B (SQL Server 2008R2)',
|
|
value: '7_3_B',
|
|
},
|
|
{
|
|
name: '7_3_A (SQL Server 2008)',
|
|
value: '7_3_A',
|
|
},
|
|
{
|
|
name: '7_2 (SQL Server 2005)',
|
|
value: '7_2',
|
|
},
|
|
{
|
|
name: '7_1 (SQL Server 2000)',
|
|
value: '7_1',
|
|
},
|
|
],
|
|
default: '7_4',
|
|
description:
|
|
"The version of TDS to use. If server doesn't support specified version, negotiated version is used instead.",
|
|
},
|
|
];
|
|
}
|