Skip to content

Commit

Permalink
Initial import
Browse files Browse the repository at this point in the history
  • Loading branch information
smaspe committed Sep 30, 2020
0 parents commit 5371ebb
Show file tree
Hide file tree
Showing 25 changed files with 5,932 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .babelrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module.exports = {
presets: [
[
require.resolve('@babel/preset-env'),
{
targets: {
node: '8',
},
},
],
],
};
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.DS_Store
node_modules/
out/
*.vsix

45 changes: 45 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Run Driver Extension",
"type": "extensionHost",
"request": "launch",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}"
],
"outFiles": [
"${workspaceFolder}/out/**/*.js"
],
"preLaunchTask": "${defaultBuildTask}",
"env": {
"SQLTOOLS_DEBUG_PORT_LS": "6099"
}
},
{
"type": "node",
"request": "attach",
"name": "Attach SQLTools LS",
"port": 6099,
"restart": true,
"sourceMaps": true,
"protocol": "inspector",
"timeout": 100000,
"outFiles": [
"${workspaceFolder}/out/**/*.js"
],
"skipFiles": [
"<node_internals>/**"
],
}
],
"compounds": [
{
"name": "Run Driver Ext and Attach LS",
"configurations": [
"Run Driver Extension",
"Attach SQLTools LS"
]
}
]
}
11 changes: 11 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// Place your settings in this file to overwrite default and user settings.
{
"files.exclude": {
"out": false // set this to true to hide the "out" folder with the compiled JS files
},
"search.exclude": {
"out": true // set this to false to include "out" folder in search results
},
// Turn off tsc task auto detection since we have the necessary tasks as npm scripts
"typescript.tsc.autoDetect": "off"
}
20 changes: 20 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
{
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "watch",
"problemMatcher": "$tsc-watch",
"isBackground": true,
"presentation": {
"reveal": "never"
},
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
9 changes: 9 additions & 0 deletions .vscodeignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.vscode/**
.vscode-test/**
out/test/**
src/**
.gitignore
**/tsconfig.json
**/.eslintrc.json
**/*.map
**/*.ts
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Change Log

## 0.0.1

Initial version
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# SQLTools exasol-driver Driver

References:

- Creating a new SQLTools driver: https://vscode-sqltools.mteixeira.dev/contributing/support-new-drivers
- Exasol WebSocket API and Javascript implementation: https://github.com/exasol/websocket-api
- Details of the protocol: https://github.com/exasol/websocket-api/blob/master/docs/WebsocketAPIV1.md#attributes-session-and-database-properties

## Package the driver

```
npm install
vsce package
```

Output is a `.vsix` file that can be installed in VS code.
44 changes: 44 additions & 0 deletions connection.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"server": {
"title": "Host",
"type": "string",
"minLength": 1
},
"port": {
"title": "Port",
"type": "integer",
"default": 8888
},
"username" : {
"title": "Username",
"type": "string",
"minLength": 1
},
"password": {
"title": "Password",
"type": "string",
"minLength": 1
},
"autocommit": {
"title": "Auto-commit",
"type": "boolean",
"default": true
},
"queryTimeout": {
"title": "Query timeout (seconds)",
"type": "integer",
"default": 180
}
},
"required": [
"server",
"port",
"username",
"password",
"autocommit",
"queryTimeout"
]
}
Binary file added icons/active.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/default.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/inactive.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 5371ebb

Please sign in to comment.