drizzle-team / drizzle-orm

Headless TypeScript ORM with a head. Runs on Node, Bun and Deno. Lives on the Edge and yes, it's a JavaScript ORM too 😅
https://orm.drizzle.team
Apache License 2.0
24.45k stars 641 forks source link

[BUG]: Cannot set libsql driver to drizzle-kit #3509

Open thiagojedi opened 6 days ago

thiagojedi commented 6 days ago

Report hasn't been filed before.

What version of drizzle-orm are you using?

0.36.1

What version of drizzle-kit are you using?

0.28.0

Other packages

@libsql/client@0.14.0

Describe the Bug

Hi. I'm trying to run drizzle-kit on Deno 2.0 but I'm having throuble connecting with local file database (libsql).

In the documentation, it says "Drizzle has native support for all @libsql/client driver variations", and indeed drizzle-orm does work if I import npm:drizzle-orm/libsql/sqlite3 or npm:drizzle-orm/libsql/node.

But I did not find this options when calling defineConfig in drizzle.config.ts file, and @libsql/client loads "web" version when run on deno (see https://github.com/tursodatabase/libsql-client-ts/issues/138 ).

Is this correct? If the docs says drizzle has native support for @libsql/client/sqlite3, shouldn't drizzle-kit have support also?

zephraph commented 2 days ago

See also https://github.com/drizzle-team/drizzle-orm/discussions/3122