Skip to content

Commit db6d600

Browse files
committed
add connection identifiers to the getConnectionInfo
1 parent 7d660fc commit db6d600

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@beekeeperstudio/plugin",
3-
"version": "1.4.0-beta.5",
3+
"version": "1.4.0-beta.6",
44
"description": "A simple TypeScript wrapper to send messages from your Beekeeper Studio plugin to the main app.",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

src/responseTypes.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,14 @@ export interface GetConnectionInfoResponse extends BaseResponse {
4040
result: {
4141
/** @deprecated Use `databaseType` instead */
4242
connectionType: string;
43+
/** The ID of the connection */
44+
id: number;
45+
/** The name of the connection specified in the connection form */
46+
workspaceId: number;
47+
/** The name of the connection specified in the connection form */
48+
connectionName: string;
4349
databaseType: 'postgresql' | 'mysql' | 'mariadb' | 'sqlite' | 'sqlserver' | 'oracle' | 'mongodb' | 'cassandra' | 'clickhouse' | 'firebird' | 'bigquery' | 'redshift' | 'duckdb' | 'libsql' | 'redis' | 'surrealdb' | 'trino';
44-
databaseTypeDisplayName: string;
50+
/** The name of the database connected to */
4551
databaseName: string;
4652
defaultSchema?: string;
4753
readOnlyMode: boolean;

0 commit comments

Comments
 (0)