workers-sdk icon indicating copy to clipboard operation
workers-sdk copied to clipboard

Durable Object SQLite support with `wrangler dev --remote`

Open mon opened this issue 6 months ago • 0 comments

Describe the solution

When running wrangler dev --remote with a new sqlite DO binding:

[WARNING] SQLite in Durable Objects is only supported in local mode.

And, as totally expected, when trying to use sqlite:

✘ [ERROR] Uncaught Error: This Durable Object is not backed by SQLite storage, so the SQL API is not available. SQL can be enabled on a new Durable Object class by using the `new_sqlite_classes` instead of `new_classes` under `[[migrations]]` in your wrangler.toml, but an already-deployed class cannot be converted to SQLite (except by deleting the existing data).

It would be nice to have feature parity here.

mon avatar May 14 '25 00:05 mon