2023-01-27 03:22:44 -08:00
|
|
|
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
|
2020-07-17 07:10:31 -07:00
|
|
|
|
|
|
|
export class CrateDb implements ICredentialType {
|
|
|
|
name = 'crateDb';
|
2022-12-02 12:54:28 -08:00
|
|
|
|
2020-07-17 07:10:31 -07:00
|
|
|
displayName = 'CrateDB';
|
2022-12-02 12:54:28 -08:00
|
|
|
|
2020-08-17 05:42:09 -07:00
|
|
|
documentationUrl = 'crateDb';
|
2022-12-02 12:54:28 -08:00
|
|
|
|
2021-06-12 09:39:55 -07:00
|
|
|
properties: INodeProperties[] = [
|
2020-07-17 07:10:31 -07:00
|
|
|
{
|
|
|
|
displayName: 'Host',
|
|
|
|
name: 'host',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'string',
|
2020-07-17 07:10:31 -07:00
|
|
|
default: 'localhost',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Database',
|
|
|
|
name: 'database',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'string',
|
2020-07-17 07:10:31 -07:00
|
|
|
default: 'doc',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'User',
|
|
|
|
name: 'user',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'string',
|
2020-07-17 07:10:31 -07:00
|
|
|
default: 'crate',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Password',
|
|
|
|
name: 'password',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'string',
|
2020-07-17 07:10:31 -07:00
|
|
|
typeOptions: {
|
|
|
|
password: true,
|
|
|
|
},
|
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'SSL',
|
|
|
|
name: 'ssl',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'options',
|
2020-07-17 07:10:31 -07:00
|
|
|
options: [
|
|
|
|
{
|
2022-04-13 23:32:27 -07:00
|
|
|
name: 'Allow',
|
|
|
|
value: 'allow',
|
2020-07-17 07:10:31 -07:00
|
|
|
},
|
|
|
|
{
|
2022-04-13 23:32:27 -07:00
|
|
|
name: 'Disable',
|
|
|
|
value: 'disable',
|
2020-07-17 07:10:31 -07:00
|
|
|
},
|
|
|
|
{
|
2022-04-13 23:32:27 -07:00
|
|
|
name: 'Require',
|
2020-07-17 07:10:31 -07:00
|
|
|
value: 'require',
|
|
|
|
},
|
|
|
|
{
|
2022-04-13 23:32:27 -07:00
|
|
|
name: 'Verify (Not Implemented)',
|
2020-07-17 07:10:31 -07:00
|
|
|
value: 'verify',
|
|
|
|
},
|
|
|
|
{
|
2022-04-13 23:32:27 -07:00
|
|
|
name: 'Verify-Full (Not Implemented)',
|
2020-07-17 07:10:31 -07:00
|
|
|
value: 'verify-full',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
default: 'disable',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Port',
|
|
|
|
name: 'port',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'number',
|
2020-07-17 07:10:31 -07:00
|
|
|
default: 5432,
|
|
|
|
},
|
|
|
|
];
|
|
|
|
}
|