Skip to content

Commit

Permalink
docs: publicly document Datastore.dataset - fixes googleapis#547
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenplusplus committed May 11, 2015
1 parent 8b3f0cf commit 811b6c9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/datastore/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,16 @@ Datastore.dataset = Dataset;
* @param {object=} options - Configuration object.
* @return {module:datastore/dataset}
*/
/**
* Create a Dataset object to reference an existing dataset.
*
* @param {object=} options - [Configuration object](#/docs/?method=gcloud).
* @param {string=} options.apiEndpoint - Override the default API endpoint used
* to reach Datastore. This is useful for connecting to your local Datastore
* server (usually "http://localhost:8080").
* @param {string} options.namespace - Namespace to isolate transactions to.
* @return {module:datastore/dataset}
*/
Datastore.prototype.dataset = function(options) {
options = options || {};
// Mix in global config data to the provided options.
Expand Down

0 comments on commit 811b6c9

Please sign in to comment.