Skip to content

datastore: Set namespace while initing a Dataset #116

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.

Activity

  1. added this to the milestone on Aug 19, 2014
  2. rakyll commented on Aug 19, 2014

    @rakyll
    ContributorAuthor

    Our key representation will be an arbitrary list of <kind, identifier> tuples without namespace magic.

  3. added a commit that references this issue on Aug 20, 2014
    2176aea
  4. added 4 commits that reference this issue on Aug 20, 2014
    1e9dcce
    8c8ab55
    f9f98a3
    3f742ea
  5. added a commit that references this issue on Aug 22, 2014
    3297751
  6. modified the milestones: , Datastore Stable on Feb 2, 2015
  7. 58 remaining items

  8. added a commit that references this issue on Feb 3, 2026
  9. added a commit that references this issue on Feb 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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