2021-06-12 09:39:55 -07:00
|
|
|
import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
2020-07-08 01:00:13 -07:00
|
|
|
|
2020-07-08 01:08:00 -07:00
|
|
|
export class MicrosoftSql implements ICredentialType {
|
|
|
|
name = 'microsoftSql';
|
|
|
|
displayName = 'Microsoft SQL';
|
2020-08-17 05:42:09 -07:00
|
|
|
documentationUrl = 'microsoftSql';
|
2021-06-12 09:39:55 -07:00
|
|
|
properties: INodeProperties[] = [
|
2020-07-08 01:00:13 -07:00
|
|
|
{
|
|
|
|
displayName: 'Server',
|
|
|
|
name: 'server',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'string',
|
2020-10-22 06:46:03 -07:00
|
|
|
default: 'localhost',
|
2020-07-08 01:00:13 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Database',
|
|
|
|
name: 'database',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'string',
|
2020-10-22 06:46:03 -07:00
|
|
|
default: 'master',
|
2020-07-08 01:00:13 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'User',
|
|
|
|
name: 'user',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'string',
|
2020-10-22 06:46:03 -07:00
|
|
|
default: 'sa',
|
2020-07-08 01:00:13 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Password',
|
|
|
|
name: 'password',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'string',
|
2020-07-08 01:00:13 -07:00
|
|
|
typeOptions: {
|
2020-10-22 06:46:03 -07:00
|
|
|
password: true,
|
2020-07-08 01:00:13 -07:00
|
|
|
},
|
2020-10-22 06:46:03 -07:00
|
|
|
default: '',
|
2020-07-08 01:00:13 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Port',
|
|
|
|
name: 'port',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'number',
|
2020-10-22 06:46:03 -07:00
|
|
|
default: 1433,
|
2020-07-08 01:00:13 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Domain',
|
|
|
|
name: 'domain',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'string',
|
2020-10-22 06:46:03 -07:00
|
|
|
default: '',
|
|
|
|
},
|
2020-11-10 14:30:03 -08:00
|
|
|
{
|
|
|
|
displayName: 'TLS',
|
|
|
|
name: 'tls',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'boolean',
|
2020-11-10 14:30:03 -08:00
|
|
|
default: true,
|
|
|
|
},
|
2021-03-07 05:02:26 -08:00
|
|
|
{
|
|
|
|
displayName: 'Connect Timeout',
|
|
|
|
name: 'connectTimeout',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'number',
|
2021-03-07 05:02:26 -08:00
|
|
|
default: 15000,
|
|
|
|
description: 'Connection timeout in ms.',
|
|
|
|
},
|
2021-07-06 15:26:34 -07:00
|
|
|
{
|
|
|
|
displayName: 'Request Timeout',
|
|
|
|
name: 'requestTimeout',
|
|
|
|
type: 'number',
|
|
|
|
default: 15000,
|
|
|
|
description: ' Request timeout in ms.',
|
|
|
|
},
|
2020-07-08 01:00:13 -07:00
|
|
|
];
|
|
|
|
}
|