presto-client
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -10,2 +10,4 @@ var Headers = exports.Headers = function(){ | ||
Headers.TIME_ZONE = 'X-Presto-Time-Zone'; | ||
Headers.CURRENT_STATE = 'X-Presto-Current-State'; | ||
@@ -12,0 +14,0 @@ Headers.MAX_WAIT = 'X-Presto-Max-Wait'; |
@@ -146,2 +146,4 @@ var http = require('http'); | ||
header[Headers.SESSION] = opts.session; | ||
if (opts.timezone) | ||
header[Headers.TIME_ZONE] = opts.timezone; | ||
@@ -177,3 +179,6 @@ var req = { method: 'POST', path: '/v1/execute', headers: header, body: query }; | ||
header[Headers.SESSION] = opts.session; | ||
if (opts.timezone) | ||
header[Headers.TIME_ZONE] = opts.timezone; | ||
var fetch_info = opts.info || false; | ||
@@ -180,0 +185,0 @@ |
{ | ||
"name": "presto-client", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "Distributed query engine Presto client library for node.js", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -82,2 +82,4 @@ # presto-client-node | ||
* set session variables via the [X-Presto-Session header](https://stackoverflow.com/questions/37082016/how-to-manage-presto-query-session-variables-using-rest-api) - string should have form `key1=val1,key2=val2` | ||
* timezone [string :optional] | ||
* set time zone via [X-Presto-Time-Zone header](https://prestodb.io/docs/current/release/release-0.66.html) | ||
* callback [function(error, data, columns)] | ||
@@ -102,2 +104,3 @@ * called once when query finished | ||
* schema [string] | ||
* timezone [string :optional] | ||
* info [boolean :optional] | ||
@@ -186,2 +189,4 @@ * fetch query info (execution statistics) for success callback, or not (default false) | ||
* 0.1.3: | ||
* add X-Presto-Time-Zone if "timezone" specified | ||
* 0.1.2: | ||
@@ -188,0 +193,0 @@ * add X-Presto-Session if "session" specified |
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
19606
305
219