Is there a way to “re-instantiate” a specific do?
Is there a way to “re-instantiate” a specific do?
Since DurableObjects are basically in-memory classes, their long-term state cannot be guaranteed - especially in cases which involve the Hibernation API. When the DurableObject hibernates, the existing websocket connections are kept alive "outside" of the class - and when one wakes up, the Workers runtime will reinstantiate the DurableObject with a new state.
// ... During periods of inactivity, the Durable Object can be evicted
// from memory, but the WebSocket connection will remain open. If at some later point the
// WebSocket receives a message, the runtime will recreate the Durable Object
// (run theconstructor) and deliver the message to the appropriate handler.
serializeAttachment / deserializeAttachment to store persistent state?this.ctx.storage.sql.exec("select * from artist where artistname = ?;", "Alice"); safe against sql-injection or do i need to worry about that?
wrangler dev --remote will support SQLite DOs?


deleteAlarm() and deleteAll() the Cloudflare API says it still exists via the endpoint /workers/durable_objects/namespaces/<id>/objects... Any insights would be appreciated.constructorserializeAttachmentdeserializeAttachmentthis.ctx.storage.sql.exec("select * from artist where artistname = ?;", "Alice");The first time you get a Durable Object stub based on an ID derived from a name, the system has to take into account the possibility that a Worker on the opposite side of the world could have coincidentally accessed the same named Durable Object at the same time. To guarantee that only one instance of the Durable Object is created, the system must check that the Durable Object has not been created anywhere else. Due to the inherent limit of the speed of light, this round-the-world check can take up to a few hundred milliseconds.wrangler dev --remotedeleteAlarm()deleteAll()/workers/durable_objects/namespaces/<id>/objects