tursodatabase / libsql

libSQL is a fork of SQLite that is both Open Source, and Open Contributions.

Home Page:https://turso.tech/libsql

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cloudflare Worker issue

spigaz opened this issue · comments

Hi, how is it possible to use turso from a worker.

You have the "cloudflare" flag for it.

But the only methods to create a remote connection, that I believe its what I have to use, force me to enable the remote flag, once I do, I always end up with the mio dependency activated.

And AFAIK there is no way to compile mio to wasm just yet.

Is there some other way to establish a connection, some alternative method?

I have found this ts example...
https://github.com/tursodatabase/examples/blob/master/app-workers-turso-ts-demo/src/index.ts

Thank you!