Skip to content

datastore: Set namespace while initing a Dataset #116

Closed
@rakyll

Description

@rakyll

According to #85, namespaces are used to differentiate customer data. They could be seen as workspaces of the same data source. From that point, most of our users are likely to need namespaces most of the time.

What we currently do is to provide two different interfaces and key representations for namespace users. Rather than keep doing that, why don't we let them a namespace at the Dataset constructor.

var ds = new Dataset({
  projectId: '..',
  // ...
  namespace: '...'
});

Any operation can include a partition ID if a namespace is set.

Metadata

Metadata

Labels

🚨This issue needs some love.api: datastoreIssues related to the Datastore API.triage meI really want to be triaged.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions