Skip to content

Commit 0adebf9

Browse files
Update @sqltools/types to match #1447 (#1471)
1 parent c769706 commit 0adebf9

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

packages/types/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ This package is part of [vscode-sqltools](https://vscode-sqltools.mteixeira.dev?
1010

1111
# Changelog
1212

13+
### v0.2.0
14+
15+
- Add IConnectionDriver.createSshTunnel() to align with SSH tunneling support implemented in AbstractDriver in @sqltools/base-driver@0.2.0
16+
1317
### v0.1.7
1418

1519
- New 0.27.0 features:

packages/types/index.d.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,19 @@ export interface IConnectionDriver {
298298
searchItems?(itemType: ContextValue, search: string, extraParams: any): Promise<NSDatabase.SearchableItem[]>;
299299
getStaticCompletions?(): Promise<{ [w: string]: NSDatabase.IStaticCompletion }>;
300300
getInsertQuery?(params: { item: NSDatabase.ITable, columns: Array<NSDatabase.IColumn> }): Promise<string>;
301+
createSshTunnel?(
302+
ssh: {
303+
host: string;
304+
port: number;
305+
username: string;
306+
password?: string;
307+
privateKeyPath?: string;
308+
},
309+
db: {
310+
host: string;
311+
port: number;
312+
}
313+
): Promise<{ port: number }>;
301314
}
302315

303316
export declare enum ContextValue {

packages/types/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sqltools/types",
3-
"version": "0.1.7",
3+
"version": "0.2.0",
44
"description": "SQLTools interfaces and types",
55
"types": "index.d.ts",
66
"main": "index.js",

0 commit comments

Comments
 (0)