UNPKG

@jokio/datastore

Version:

Helper library for Google Cloud Datastore

14 lines (13 loc) 477 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var db_transaction_1 = require("./db-transaction"); var DbContext = /** @class */ (function () { function DbContext(datastore) { this.doTransaction = db_transaction_1.configureTransaction(datastore); } DbContext.prototype.transaction = function (process) { return this.doTransaction(process); }; return DbContext; }()); exports.DbContext = DbContext;