2020-07-08 01:00:13 -07:00
|
|
|
import { ICredentialType, NodePropertyTypes } from 'n8n-workflow';
|
|
|
|
|
2020-07-08 01:08:00 -07:00
|
|
|
export class MicrosoftSql implements ICredentialType {
|
|
|
|
name = 'microsoftSql';
|
|
|
|
displayName = 'Microsoft SQL';
|
2020-07-08 01:00:13 -07:00
|
|
|
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: ''
|
|
|
|
}
|
|
|
|
];
|
|
|
|
}
|