bigquery
Advanced tools
Comparing version 0.0.4 to 0.0.5
{ | ||
"name": "bigquery", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"repository": | ||
@@ -10,6 +10,6 @@ { "type": "git", | ||
"dependencies": { | ||
"google-api-utility": "*", | ||
"nodeutil": "0.0.29", | ||
"google-api-utility": "0.0.13", | ||
"nodeutil": "0.1.0", | ||
"underscore": "~1.6.0" | ||
} | ||
} |
@@ -12,7 +12,7 @@ # bigquery | ||
## Apply service account | ||
## Apply service account | ||
Follow the doc: http://gappsnews.blogspot.tw/2013/10/connect-cloud-platform-bigquery-using.html | ||
## Convert p12 key | ||
## Convert p12 key (If use old version service account...) | ||
From admin console, create a service account, save the client_secrets.json and it's key | ||
@@ -29,14 +29,23 @@ ex: Translate p12 to pem | ||
## Initial using old client_secret.json (will deprecated) | ||
## Initial using Service Account json_file | ||
Load bigquery lib, specify your project id then setup the service account and the client_secret.json file path, pem key file path for auth use. | ||
If you are create the service account after 2015Q2, you will find the service account provide a json file formate download. The json file is like: | ||
``` | ||
{ | ||
"private_key_id": "e7************************************e8", | ||
"private_key": "-----BEGIN PRIVATE KEY-----\nMIIC***....skip...****AFW1Y\n-----END PRIVATE KEY-----\n", | ||
"client_email": "86*********8-if***************************pq2@developer.gserviceaccount.com", | ||
"client_id": "86*********8-if***************************pq2.apps.googleusercontent.com", | ||
"type": "service_account" | ||
} | ||
``` | ||
The file is already include the secret file and the account information. We support to use the file for easy auth. | ||
``` | ||
var bq = require('bigquery') | ||
, fs = require('fs') | ||
, prjId = 'your-bigquery-project-id'; //you need to modify this | ||
bq.init({ | ||
client_secret: '/path-to-client_secret.json', | ||
key_pem: '/path-to-key.pem' | ||
json_file: '/path/to/your-service-account-json-file.json' | ||
}); | ||
@@ -56,3 +65,18 @@ ``` | ||
## Initial using old client_secret.json (will deprecated) | ||
Load bigquery lib, specify your project id then setup the service account and the client_secret.json file path, pem key file path for auth use. | ||
``` | ||
var bq = require('bigquery') | ||
, fs = require('fs') | ||
, prjId = 'your-bigquery-project-id'; //you need to modify this | ||
bq.init({ | ||
client_secret: '/path-to-client_secret.json', | ||
key_pem: '/path-to-key.pem' | ||
}); | ||
``` | ||
## Do Query | ||
@@ -174,1 +198,14 @@ | ||
``` | ||
## Other request timeout parameters | ||
If you want to add timeout parameter to restrict to your bigquery api request time. You can add timeout parameter to the init() like: | ||
``` | ||
bq.init({ | ||
client_secret: __dirname + '/client_secret.json', | ||
key_pem: __dirname + '/key.pem', | ||
timeout:1000 | ||
}); | ||
``` | ||
Floating dependency
QualityPackage has a dependency with a floating version range. This can cause issues if the dependency publishes a new major version.
Found 1 instance in 1 package
10054
1
208
+ Addedasn1@0.1.11(transitive)
+ Addedassert-plus@0.1.5(transitive)
+ Addedasync@0.9.2(transitive)
+ Addedaws-sign@0.3.0(transitive)
+ Addedboom@0.4.2(transitive)
+ Addedcookie-jar@0.3.0(transitive)
+ Addedcryptiles@0.2.2(transitive)
+ Addedctype@0.5.3(transitive)
+ Addedforever-agent@0.5.2(transitive)
+ Addedform-data@0.1.4(transitive)
+ Addedgoogle-api-utility@0.0.13(transitive)
+ Addedhawk@1.0.0(transitive)
+ Addedhoek@0.9.1(transitive)
+ Addedhttp-signature@0.10.1(transitive)
+ Addedoauth-sign@0.3.0(transitive)
+ Addedqs@0.6.6(transitive)
+ Addedrequest@2.27.0(transitive)
+ Addedsntp@0.2.4(transitive)
+ Addedtunnel-agent@0.3.0(transitive)
- Removedaddressparser@1.0.1(transitive)
- Removedasync@0.1.15(transitive)
- Removedbuildmail@4.0.1(transitive)
- Removeddequeue@1.0.3(transitive)
- Removedgoogle-api-utility@0.0.14(transitive)
- Removediconv-lite@0.4.15(transitive)
- Removedlibbase64@0.1.0(transitive)
- Removedlibmime@3.0.0(transitive)
- Removedlibqp@1.1.0(transitive)
- Removedlog4js@0.6.3(transitive)
- Removedmailcomposer@4.0.2(transitive)
- Removedminimist@0.0.10(transitive)
- Removednodemailer@0.3.37(transitive)
- Removednodemailer-fetch@1.6.0(transitive)
- Removednodemailer-shared@1.1.0(transitive)
- Removednodeutil@0.0.29(transitive)
- Removedoptimist@0.6.1(transitive)
- Removedpunycode@1.4.1(transitive)
- Removedrai@0.1.12(transitive)
- Removedsemver@1.1.4(transitive)
- Removedsimplesmtp@0.3.35(transitive)
- Removedwordwrap@0.0.3(transitive)
- Removedxoauth2@0.1.8(transitive)
Updatedgoogle-api-utility@0.0.13
Updatednodeutil@0.1.0