Hey everyone! I have a C++ application, that creates its own sqlite database for its internals. I w

Hey everyone!

I have a C++ application, that creates its own sqlite database for its internals. I want to use it in a Cloudflare Durable Object. I recompiled to Webassembly, created Emscripten bindings, so now I can trigger the creation of the aforementioned database from JS, in a Durable Object class.
Question:
  • is this setup taking advantage of the Durable Object setup ?
  • or in other words, do I have to feed my query strings to
    this.sql.exec(...)
  • or is the db created by my C++/WASM code is just as fast?
The answer seems to me that I have to use this.sql.exec(...) from the Durable Object API, but I'd like to double check before I get to coding!
https://developers.cloudflare.com/durable-objects/api/storage-api/#sql-api

Thanks
Cloudflare Docs
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.
Was this page helpful?