Kevin Whinnery
Can you recommend a mysql driver for deno that isn't a complete dead end?
Yeah, I feel like now we are in the land of certificate handling, and Deno and Node have different mechanisms of handling SSL handshakes (if indeed Node is able to connect to your local DB)
26 replies
Can you recommend a mysql driver for deno that isn't a complete dead end?
If the mysql2 npm module isn't working, that's definitely a compatibility issue we should jump on - @toninho do deno if you have a reproduction case we could use to validate, that would be awesome
26 replies
How do I run an npm script with multiple dependencies, e.g. `drizzle-kit generate:pg`?
It looks like we have a few issues at play here.
The first is that
drizzle-kit
expects that drizzle-orm
has already been installed to node_modules
in the current folder (it doesn't work if you run npx drizzle-kit generate:pg
without doing this either). My recommendation here is that (for now) you manage these dependencies with an npm client.
Once you do this, however, running
Still produces an error. This is an npm compatibility error that has been reported here: https://github.com/denoland/deno/issues/19826 - it would appear that we don't have the right shims in place for the worker thread API for core Node.
To run the migration generation, you'd need to run this through Node today as well 😦
However, the actual client code works just fine in Deno:
4 replies
deno doc: error: fp-ts
issue report for error message: https://github.com/denoland/deno/issues/20763
36 replies
deno doc: error: fp-ts
Also, just for posterity and future explorers who might find this thread - it's definitely a good idea to use npm: specifiers rather than esm.sh - the former import path is actively developed and maintained by the core team
36 replies