Skip to content

Commit 75e58f2

Browse files
kthejokerJesse Whitehouse
andauthored
Updating API endpoint references (#137)
* Updating API endpoint references Updating examples with latest API endpoint definitions. * replace all doc and example URLs This doesn't affect code execution Signed-off-by: Jesse Whitehouse <jesse.whitehouse@databricks.com> --------- Signed-off-by: Jesse Whitehouse <jesse.whitehouse@databricks.com> Co-authored-by: Jesse Whitehouse <jesse.whitehouse@databricks.com>
1 parent 42a68ef commit 75e58f2

File tree

8 files changed

+9
-9
lines changed

8 files changed

+9
-9
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const client = new DBSQLClient();
3535
client
3636
.connect({
3737
host: '********.databricks.com',
38-
path: '/sql/1.0/endpoints/****************',
38+
path: '/sql/2.0/warehouses/****************',
3939
token: 'dapi********************************',
4040
})
4141
.then(async (client) => {
@@ -73,7 +73,7 @@ Before running end-to-end tests, create a file named `tests/e2e/utils/config.loc
7373
```javascript
7474
{
7575
host: '***.databricks.com',
76-
path: '/sql/1.0/endpoints/***',
76+
path: '/sql/2.0/warehouses/***',
7777
token: 'dapi***',
7878
database: ['catalog', 'database'],
7979
}

examples/cancel_operation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const { DBSQLClient } = require('../');
33
const client = new DBSQLClient();
44

55
const host = '****.databricks.com';
6-
const path = '/sql/1.0/endpoints/****';
6+
const path = '/sql/2.0/warehouses/****';
77
const token = 'dapi********************************';
88

99
async function getQueryResult(operation) {

examples/data_types.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const { DBSQLClient, utils } = require('../');
33
const client = new DBSQLClient();
44

55
const host = '****.databricks.com';
6-
const path = '/sql/1.0/endpoints/****';
6+
const path = '/sql/2.0/warehouses/****';
77
const token = 'dapi********************************';
88

99
client.connect({ host, path, token }).then(async (client) => {

examples/logging.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const client = new DBSQLClient({ logger: logger });
1010
client
1111
.connect({
1212
host: '****.cloud.databricks.com',
13-
path: '/sql/1.0/endpoints/*************',
13+
path: '/sql/2.0/warehouses/*************',
1414
token: 'dapi**************************',
1515
})
1616
.then(async (client) => {

examples/repl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ async function initClient({ host, endpointId, token }) {
1313
const client = new DBSQLClient();
1414
return client.connect({
1515
host,
16-
path: `/sql/1.0/endpoints/${endpointId}`,
16+
path: `/sql/2.0/warehouses/${endpointId}`,
1717
token,
1818
clientId: 'REPL',
1919
});

examples/session.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const client = new DBSQLClient();
55
const utils = DBSQLClient.utils;
66

77
const host = '****.databricks.com';
8-
const path = '/sql/1.0/endpoints/****';
8+
const path = '/sql/2.0/warehouses/****';
99
const token = 'dapi********************************';
1010

1111
client

examples/usage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const { DBSQLClient, thrift } = require('../');
33
const client = new DBSQLClient();
44

55
const host = '****.databricks.com';
6-
const path = '/sql/1.0/endpoints/****';
6+
const path = '/sql/2.0/warehouses/****';
77
const token = 'dapi********************************';
88

99
client

tests/e2e/utils/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ module.exports = {
1212
logger: 'CONSOLE',
1313
// Host, like ****.cloud.databricks.com
1414
host: process.env.E2E_HOST,
15-
// API path: /sql/1.0/endpoints/****************
15+
// API path: /sql/2.0/warehouses/****************
1616
path: process.env.E2E_PATH,
1717
// Access token: dapi********************************
1818
token: process.env.E2E_ACCESS_TOKEN,

0 commit comments

Comments
 (0)