presto-client
Advanced tools
Comparing version 0.5.0 to 0.6.0
@@ -34,2 +34,4 @@ const { URL } = require('url') ; | ||
this.schema = args.schema; | ||
this.source = args.source || 'nodejs-client'; | ||
@@ -62,2 +64,5 @@ this.checkInterval = args.checkInterval || QUERY_STATE_CHECK_INTERVAL; | ||
opts.headers[Headers.USER] = client.user; | ||
if (client.source) | ||
opts.headers[Headers.SOURCE] = client.source; | ||
@@ -64,0 +69,0 @@ opts.headers[Headers.USER_AGENT] = this.userAgent; |
{ | ||
"name": "presto-client", | ||
"version": "0.5.0", | ||
"version": "0.6.0", | ||
"description": "Distributed query engine Presto client library for node.js", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -13,2 +13,3 @@ # presto-client-node | ||
schema: 'default', | ||
source: 'nodejs-client' | ||
state: function(error, query_id, stats){ console.log({message:"status changed", id:query_id, stats:stats}); }, | ||
@@ -54,2 +55,4 @@ columns: function(error, data){ console.log({resultColumns: data}); }, | ||
* Username of query (default: process user name) | ||
* source [string] | ||
* Source of query (default: nodejs-client) | ||
* basic_auth [object] | ||
@@ -168,2 +171,4 @@ * Pass in a user and password to enable Authorization Basic headers on all requests. | ||
* 0.6.0: | ||
* add X-Presto-Source if "source" specified | ||
* 0.5.0: | ||
@@ -170,0 +175,0 @@ * remove support for execute(arg, callback) using `/v1/execute` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21141
325
211