Skip to content

Commit

Permalink
show connecting to local datastore in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenplusplus committed Feb 24, 2015
1 parent 9bcc896 commit 78358d4
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion lib/datastore/dataset.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,22 @@ var SCOPES = [
* a `keyFilename`.
* @param {string=} options.apiEndpoint - Override the default API endpoint used
* to reach Datastore. This is useful for connecting to your local Datastore
* server.
* server (usually "http://localhost:8080").
* @param {string} options.namespace - Namespace to isolate transactions to.
*
* @example
* var dataset = datastore.dataset({
* projectId: 'my-project',
* keyFilename: '/path/to/keyfile.json'
* });
*
* //-
* // Connect to your local Datastore server.
* //-
* var dataset = datastore.dataset({
* projectId: 'my-project',
* apiEndpoint: 'http://localhost:8080'
* });
*/
function Dataset(options) {
if (!(this instanceof Dataset)) {
Expand Down

0 comments on commit 78358d4

Please sign in to comment.