Durable Object (sql backend) transaction.put not saving
i'm trying to understand how to use transactions to perform batch operations, as running standard sql transactions on the storage sql property throws an error saying to use the javascript api, but i cannot find any documentation for the javascript api or how to use it
this is the code in question, it does not throw any error and txn.put only returns a Promise<void>
i successfully receive the data being sent to save (console.log confirms) but nothing gets actually saved
1 Reply
I think the documentation you are looking for is here: https://developers.cloudflare.com/durable-objects/api/storage-api/
Cloudflare Docs
Durable Object Storage
The Durable Object Storage API allows Durable Objects to access transactional and strongly consistent storage. A Durable Object's attached storage is private to its unique instance and cannot be accessed by other objects.