mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 04:34:06 -08:00
c7db9c0a4d
* 🐛 fix issue sending connectionTimeout parameter * 🐛 Fix issue when inserting data using columns with spaces * 🐛 Fix issue when updating data using columns with spaces * 🐛 Fix issue when deleting data using columns with spaces Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
69 lines
1.2 KiB
TypeScript
69 lines
1.2 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.',
|
|
},
|
|
];
|
|
}
|