n8n/packages/nodes-base/credentials/MicrosoftSql.credentials.ts

99 lines
1.8 KiB
TypeScript
Raw Normal View History

import { ICredentialType, INodeProperties } from 'n8n-workflow';
2020-07-08 01:08:00 -07:00
export class MicrosoftSql implements ICredentialType {
name = 'microsoftSql';
displayName = 'Microsoft SQL';
documentationUrl = 'microsoftSql';
properties: INodeProperties[] = [
{
displayName: 'Server',
name: 'server',
type: 'string',
2020-10-22 06:46:03 -07:00
default: 'localhost',
},
{
displayName: 'Database',
name: 'database',
type: 'string',
2020-10-22 06:46:03 -07:00
default: 'master',
},
{
displayName: 'User',
name: 'user',
type: 'string',
2020-10-22 06:46:03 -07:00
default: 'sa',
},
{
displayName: 'Password',
name: 'password',
type: 'string',
typeOptions: {
2020-10-22 06:46:03 -07:00
password: true,
},
2020-10-22 06:46:03 -07:00
default: '',
},
{
displayName: 'Port',
name: 'port',
type: 'number',
2020-10-22 06:46:03 -07:00
default: 1433,
},
{
displayName: 'Domain',
name: 'domain',
type: 'string',
2020-10-22 06:46:03 -07:00
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.",
},
];
}