Skip to content

Commit 5371ebb

Browse files
committed
Initial import
0 parents  commit 5371ebb

25 files changed

+5932
-0
lines changed

.babelrc.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
module.exports = {
2+
presets: [
3+
[
4+
require.resolve('@babel/preset-env'),
5+
{
6+
targets: {
7+
node: '8',
8+
},
9+
},
10+
],
11+
],
12+
};

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.DS_Store
2+
node_modules/
3+
out/
4+
*.vsix
5+

.vscode/launch.json

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "Run Driver Extension",
6+
"type": "extensionHost",
7+
"request": "launch",
8+
"args": [
9+
"--extensionDevelopmentPath=${workspaceFolder}"
10+
],
11+
"outFiles": [
12+
"${workspaceFolder}/out/**/*.js"
13+
],
14+
"preLaunchTask": "${defaultBuildTask}",
15+
"env": {
16+
"SQLTOOLS_DEBUG_PORT_LS": "6099"
17+
}
18+
},
19+
{
20+
"type": "node",
21+
"request": "attach",
22+
"name": "Attach SQLTools LS",
23+
"port": 6099,
24+
"restart": true,
25+
"sourceMaps": true,
26+
"protocol": "inspector",
27+
"timeout": 100000,
28+
"outFiles": [
29+
"${workspaceFolder}/out/**/*.js"
30+
],
31+
"skipFiles": [
32+
"<node_internals>/**"
33+
],
34+
}
35+
],
36+
"compounds": [
37+
{
38+
"name": "Run Driver Ext and Attach LS",
39+
"configurations": [
40+
"Run Driver Extension",
41+
"Attach SQLTools LS"
42+
]
43+
}
44+
]
45+
}

.vscode/settings.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// Place your settings in this file to overwrite default and user settings.
2+
{
3+
"files.exclude": {
4+
"out": false // set this to true to hide the "out" folder with the compiled JS files
5+
},
6+
"search.exclude": {
7+
"out": true // set this to false to include "out" folder in search results
8+
},
9+
// Turn off tsc task auto detection since we have the necessary tasks as npm scripts
10+
"typescript.tsc.autoDetect": "off"
11+
}

.vscode/tasks.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// See https://go.microsoft.com/fwlink/?LinkId=733558
2+
// for the documentation about the tasks.json format
3+
{
4+
"version": "2.0.0",
5+
"tasks": [
6+
{
7+
"type": "npm",
8+
"script": "watch",
9+
"problemMatcher": "$tsc-watch",
10+
"isBackground": true,
11+
"presentation": {
12+
"reveal": "never"
13+
},
14+
"group": {
15+
"kind": "build",
16+
"isDefault": true
17+
}
18+
}
19+
]
20+
}

.vscodeignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.vscode/**
2+
.vscode-test/**
3+
out/test/**
4+
src/**
5+
.gitignore
6+
**/tsconfig.json
7+
**/.eslintrc.json
8+
**/*.map
9+
**/*.ts

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Change Log
2+
3+
## 0.0.1
4+
5+
Initial version

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# SQLTools exasol-driver Driver
2+
3+
References:
4+
5+
- Creating a new SQLTools driver: https://vscode-sqltools.mteixeira.dev/contributing/support-new-drivers
6+
- Exasol WebSocket API and Javascript implementation: https://github.com/exasol/websocket-api
7+
- Details of the protocol: https://github.com/exasol/websocket-api/blob/master/docs/WebsocketAPIV1.md#attributes-session-and-database-properties
8+
9+
## Package the driver
10+
11+
```
12+
npm install
13+
vsce package
14+
```
15+
16+
Output is a `.vsix` file that can be installed in VS code.

connection.schema.json

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"type": "object",
4+
"properties": {
5+
"server": {
6+
"title": "Host",
7+
"type": "string",
8+
"minLength": 1
9+
},
10+
"port": {
11+
"title": "Port",
12+
"type": "integer",
13+
"default": 8888
14+
},
15+
"username" : {
16+
"title": "Username",
17+
"type": "string",
18+
"minLength": 1
19+
},
20+
"password": {
21+
"title": "Password",
22+
"type": "string",
23+
"minLength": 1
24+
},
25+
"autocommit": {
26+
"title": "Auto-commit",
27+
"type": "boolean",
28+
"default": true
29+
},
30+
"queryTimeout": {
31+
"title": "Query timeout (seconds)",
32+
"type": "integer",
33+
"default": 180
34+
}
35+
},
36+
"required": [
37+
"server",
38+
"port",
39+
"username",
40+
"password",
41+
"autocommit",
42+
"queryTimeout"
43+
]
44+
}

icons/active.png

13 KB
Loading

0 commit comments

Comments
 (0)