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-08-17 05:42:09 -07:00
|
|
|
documentationUrl = 'microsoftSql';
|
2020-07-08 01:00:13 -07:00
|
|
|
properties = [
|
|
|
|
{
|
|
|
|
displayName: 'Server',
|
|
|
|
name: 'server',
|
|
|
|
type: 'string' as NodePropertyTypes,
|
2020-10-22 06:46:03 -07:00
|
|
|
default: 'localhost',
|
2020-07-08 01:00:13 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Database',
|
|
|
|
name: 'database',
|
|
|
|
type: 'string' as NodePropertyTypes,
|
2020-10-22 06:46:03 -07:00
|
|
|
default: 'master',
|
2020-07-08 01:00:13 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'User',
|
|
|
|
name: 'user',
|
|
|
|
type: 'string' as NodePropertyTypes,
|
2020-10-22 06:46:03 -07:00
|
|
|
default: 'sa',
|
2020-07-08 01:00:13 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Password',
|
|
|
|
name: 'password',
|
|
|
|
type: 'string' as NodePropertyTypes,
|
|
|
|
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',
|
|
|
|
type: 'number' as NodePropertyTypes,
|
2020-10-22 06:46:03 -07:00
|
|
|
default: 1433,
|
2020-07-08 01:00:13 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Domain',
|
|
|
|
name: 'domain',
|
|
|
|
type: 'string' as NodePropertyTypes,
|
2020-10-22 06:46:03 -07:00
|
|
|
default: '',
|
|
|
|
},
|
2020-07-08 01:00:13 -07:00
|
|
|
];
|
|
|
|
}
|