mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-05-01 10:53:57 +00:00
Improved ms sql windows connect UX
This commit is contained in:
1
packages/types/engines.d.ts
vendored
1
packages/types/engines.d.ts
vendored
@@ -47,6 +47,7 @@ export interface EngineDriver {
|
|||||||
showConnectionTab?: (tab: 'ssl' | 'sshTunnel', values: any) => boolean;
|
showConnectionTab?: (tab: 'ssl' | 'sshTunnel', values: any) => boolean;
|
||||||
beforeConnectionSave?: (values: any) => any;
|
beforeConnectionSave?: (values: any) => any;
|
||||||
databaseUrlPlaceholder?: string;
|
databaseUrlPlaceholder?: string;
|
||||||
|
defaultAuthTypeName?: string;
|
||||||
connect({ server, port, user, password, database }): Promise<any>;
|
connect({ server, port, user, password, database }): Promise<any>;
|
||||||
close(pool): Promise<any>;
|
close(pool): Promise<any>;
|
||||||
query(pool: any, sql: string, options?: QueryOptions): Promise<QueryResult>;
|
query(pool: any, sql: string, options?: QueryOptions): Promise<QueryResult>;
|
||||||
|
|||||||
@@ -65,6 +65,8 @@
|
|||||||
<FormSelectField
|
<FormSelectField
|
||||||
label="Authentication"
|
label="Authentication"
|
||||||
name="authType"
|
name="authType"
|
||||||
|
isNative
|
||||||
|
defaultValue={driver?.defaultAuthTypeName}
|
||||||
options={$authTypes.map(auth => ({
|
options={$authTypes.map(auth => ({
|
||||||
value: auth.name,
|
value: auth.name,
|
||||||
label: auth.title,
|
label: auth.title,
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ const windowsAuthTypes = [
|
|||||||
disabledFields: ['port'],
|
disabledFields: ['port'],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Tedious driver',
|
title: 'NodeJs portable driver (tedious)',
|
||||||
name: 'tedious',
|
name: 'tedious',
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -59,6 +59,7 @@ const driver = {
|
|||||||
engine: 'mssql@dbgate-plugin-mssql',
|
engine: 'mssql@dbgate-plugin-mssql',
|
||||||
title: 'Microsoft SQL Server',
|
title: 'Microsoft SQL Server',
|
||||||
defaultPort: 1433,
|
defaultPort: 1433,
|
||||||
|
defaultAuthTypeName: 'tedious',
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports = driver;
|
module.exports = driver;
|
||||||
|
|||||||
Reference in New Issue
Block a user