mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-26 21:19:43 -08:00
10645c2ef5
* Update MicrosoftSql.node.ts * Update MicrosoftSql.credentials.ts * Update MicrosoftSql.node.ts Add TLS encryption toggle to MSSQL credentials type and implement into the connection config object. This will help users connect to certain Azure MSSQL products and older MSSQL instances.
55 lines
1 KiB
TypeScript
55 lines
1 KiB
TypeScript
import { ICredentialType, NodePropertyTypes } from 'n8n-workflow';
|
|
|
|
export class MicrosoftSql implements ICredentialType {
|
|
name = 'microsoftSql';
|
|
displayName = 'Microsoft SQL';
|
|
documentationUrl = 'microsoftSql';
|
|
properties = [
|
|
{
|
|
displayName: 'Server',
|
|
name: 'server',
|
|
type: 'string' as NodePropertyTypes,
|
|
default: 'localhost',
|
|
},
|
|
{
|
|
displayName: 'Database',
|
|
name: 'database',
|
|
type: 'string' as NodePropertyTypes,
|
|
default: 'master',
|
|
},
|
|
{
|
|
displayName: 'User',
|
|
name: 'user',
|
|
type: 'string' as NodePropertyTypes,
|
|
default: 'sa',
|
|
},
|
|
{
|
|
displayName: 'Password',
|
|
name: 'password',
|
|
type: 'string' as NodePropertyTypes,
|
|
typeOptions: {
|
|
password: true,
|
|
},
|
|
default: '',
|
|
},
|
|
{
|
|
displayName: 'Port',
|
|
name: 'port',
|
|
type: 'number' as NodePropertyTypes,
|
|
default: 1433,
|
|
},
|
|
{
|
|
displayName: 'Domain',
|
|
name: 'domain',
|
|
type: 'string' as NodePropertyTypes,
|
|
default: '',
|
|
},
|
|
{
|
|
displayName: 'TLS',
|
|
name: 'tls',
|
|
type: 'boolean' as NodePropertyTypes,
|
|
default: true,
|
|
},
|
|
];
|
|
}
|