Improved ms sql windows connect UX

This commit is contained in:
Jan Prochazka 2021-10-24 08:03:03 +02:00
parent bf315c53ac
commit 902267f5eb
4 changed files with 5 additions and 1 deletions

View File

@ -47,6 +47,7 @@ export interface EngineDriver {
showConnectionTab?: (tab: 'ssl' | 'sshTunnel', values: any) => boolean;
beforeConnectionSave?: (values: any) => any;
databaseUrlPlaceholder?: string;
defaultAuthTypeName?: string;
connect({ server, port, user, password, database }): Promise<any>;
close(pool): Promise<any>;
query(pool: any, sql: string, options?: QueryOptions): Promise<QueryResult>;

View File

@ -65,6 +65,8 @@
<FormSelectField
label="Authentication"
name="authType"
isNative
defaultValue={driver?.defaultAuthTypeName}
options={$authTypes.map(auth => ({
value: auth.name,
label: auth.title,

View File

@ -41,7 +41,7 @@ const windowsAuthTypes = [
disabledFields: ['port'],
},
{
title: 'Tedious driver',
title: 'NodeJs portable driver (tedious)',
name: 'tedious',
},
];

View File

@ -59,6 +59,7 @@ const driver = {
engine: 'mssql@dbgate-plugin-mssql',
title: 'Microsoft SQL Server',
defaultPort: 1433,
defaultAuthTypeName: 'tedious',
};
module.exports = driver;