# Feature Request: Add Variants of Storage API that accept passed in db.Tx

**URL:** https://forum.heroiclabs.com/t/feature-request-add-variants-of-storage-api-that-accept-passed-in-db-tx/426
**Category:** Game Design
**Created:** [December 31, 2019, 8:53pm UTC](https://forum.heroiclabs.com/t/feature-request-add-variants-of-storage-api-that-accept-passed-in-db-tx/426 "2019-12-31T20:53:58Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![chrispy06](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/chrispy06/32/143_2.png) [@chrispy06](https://forum.heroiclabs.com/u/chrispy06)
#### Post date: [December 31, 2019, 8:53pm UTC](https://forum.heroiclabs.com/t/feature-request-add-variants-of-storage-api-that-accept-passed-in-db-tx/426/1 "2019-12-31T20:53:58Z")

</div>

When writing complex custom rpcs, it is often desired to have control over the db transaction lifecycle. The storage APIs however start their own transaction; to avoid isolation issues, it would be ideal if the storage APIs could have additional variants that accept a pre-existing transaction.

---

<div class="post-metadata">

### Author: ![zyro](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/zyro/32/14_2.png) [@zyro](https://forum.heroiclabs.com/u/zyro)
#### Post date: [January 2, 2020, 8:12pm UTC](https://forum.heroiclabs.com/t/feature-request-add-variants-of-storage-api-that-accept-passed-in-db-tx/426/2 "2020-01-02T20:12:32Z")

</div>

I can see how this might be useful for storage and other database-oriented operations. Can you [open an issue on the tracker](https://github.com/heroiclabs/nakama/issues) for us to track this feature request?
