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

Add support for sqlite backed durable objects.

Open connyay opened this issue 8 months ago • 1 comments

Fixes #645

connyay avatar May 14 '25 01:05 connyay

alt to https://github.com/cloudflare/workers-rs/pull/723 with some additional bindgen methods, a test, and a sandbox example.

~This PR uses jsvalue pretty liberally and omits SqlStorageValue. Happy to make a change if needed, but types are already wonky in sqlite and the rust/wasm layers make it even more confusing. Would love from someone from cloudflare to weigh in there. Ideally could skip things like https://github.com/cloudflare/workers-rs/pull/723/files#r2045394966 if we are just ysing jsvalues? 🤷‍♂️~

connyay avatar May 14 '25 01:05 connyay

Ended up adding SqlStorageValue after attempting to use my fork. Definitely improves ergonomics.

connyay avatar Jun 17 '25 03:06 connyay

sry. I was only iterating on npm run test 👼

connyay avatar Jun 17 '25 23:06 connyay

Thanks again for your work on this!

guybedford avatar Jun 18 '25 19:06 guybedford