Skip to content

Transaction docs are private but transaction object exposed through runInTransaction #205

Description

@ryanseys
dataset.runInTransaction(function(transaction, done) {
  transaction.doThis();
  transaction.doThat();
  done();
});

Don't know what methods are available on the transaction object. There's a one-liner explaining that I can use it like dataset, but would be better to explicitly list the methods especially considering somethings can only be done from dataset (e.g. allocateIds(), key())

Activity

  1. stephenplusplus commented on Sep 29, 2014

    @stephenplusplus
    Contributor

    This is going to have to be covered as part of #231. So, closing this issue not for being resolved, but for re-direction to the PR.

  2. added this to the Datastore Stable milestone on Feb 2, 2015
  3. added
    type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
    and removed on Feb 2, 2015
  4. added a commit that references this issue on Oct 5, 2022
  5. 39 remaining items

  6. added a commit that references this issue on Jan 29, 2026
  7. added a commit that references this issue on Feb 25, 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: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions