
Security News
Open Source CAI Framework Handles Pen Testing Tasks up to 3,600× Faster Than Humans
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Driver for connection to Databricks SQL via Thrift API.
The Databricks SQL Driver for NodeJS is a Javascript driver for applications that connect to Databricks clusters and SQL warehouses. This project is a fork of Hive Driver which connects via Thrift API.
NOTE: This Driver is Beta.
For detailed documentation and usage examples, read the Getting Started guide.
npm i @databricks/sql
const { DBSQLClient } = require('@databricks/sql');
const client = new DBSQLClient();
const utils = DBSQLClient.utils;
client
.connect({
host: '********.databricks.com',
path: '/sql/1.0/endpoints/****************',
token: 'dapi********************************',
})
.then(async (client) => {
const session = await client.openSession();
const queryOperation = await session.executeStatement('SELECT "Hello, World!"', { runAsync: true });
await utils.waitUntilReady(queryOperation, false, () => {});
await utils.fetchAll(queryOperation);
await queryOperation.close();
const result = utils.getResult(queryOperation).getValue();
console.table(result);
await session.close();
client.close();
})
.catch((error) => {
console.log(error);
});
npm run test
You can specify a specific test to run by changing package.json
:
"scripts": {
"test": "nyc --reporter=lcov mocha 'tests/unit/result/JsonResult.test.js'",
}
Or to run all unit tests:
"scripts": {
"test": "nyc --reporter=lcov mocha 'tests/unit/**/*.test.js'",
}
Before running end-to-end tests, copy the sample configuration file into the repository root and set the Databricks SQL connection info:
{
host: '***.databricks.com',
path: '/sql/1.0/endpoints/***',
token: 'dapi***',
database: ['catalog', 'database'],
}
Then run
npm run e2e
See CONTRIBUTING.md
If you find any issues, feel free to create an issue or send a pull request directly.
0.1.8-beta.1 (2022-06-24)
FAQs
Driver for connection to Databricks SQL via Thrift API.
The npm package dbsql-test receives a total of 0 weekly downloads. As such, dbsql-test popularity was classified as not popular.
We found that dbsql-test demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.