Skip to content

Commit

Permalink
bad example
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenplusplus committed Oct 26, 2014
1 parent f78119a commit 4f2d88a
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions lib/bigquery/table.js
Original file line number Diff line number Diff line change
Expand Up @@ -246,13 +246,11 @@ Table.prototype.getRows = function(options, callback) {
* @return {WriteStream}
*
* @example
* var kittens = bq.dataset('kittens');
*
* //-
* // Load data from a CSV file.
* //-
* fs.createReadStream('/kittens.csv')
* .pipe(kittens.createWriteStream())
* .pipe(myTable.createWriteStream())
* .on('error', function(error) {})
* .on('complete', function(job) {
* // job is a Job object, which you can use to check the status of the load
Expand All @@ -266,7 +264,7 @@ Table.prototype.getRows = function(options, callback) {
* // Load data from a JSON file.
* //-
* fs.createReadStream('/kittens.json')
* .pipe(kittens.createWriteStream('json'))
* .pipe(myTable.createWriteStream('json'))
* .on('complete', function(job) {});
*/
Table.prototype.createWriteStream = function(metadata) {
Expand Down Expand Up @@ -453,9 +451,7 @@ Table.prototype.export = function(options, destination, callback) {
* @param {function} callback - The callback function.
*
* @example
* myTable.getMetadata(function(err, metadata) {
* // Use Table metadata here.
* });
* myTable.getMetadata(function(err, metadata) {});
*/
Table.prototype.getMetadata = function(callback) {
this.makeReq_('GET', '', null, null, function(err, resp) {
Expand Down

0 comments on commit 4f2d88a

Please sign in to comment.