W
Windmill10mo ago
Kana

Importing pgClient when using bun

The docs mention that to use the pgClient to interact with your database you can use the following line import { pgClient } from 'https://deno.land/x/windmill@v1.88.1/mod.ts'; But what would be the bun equivalent? I've been tinkering with it for a bit now and can't seem to get it to work.
2 Replies
rubenf
rubenf10mo ago
npm
postgres
Fastest full featured PostgreSQL client for Node.js. Latest version: 3.3.5, last published: 3 months ago. Start using postgres in your project by running npm i postgres. There are 135 other projects in the npm registry using postgres.
Kana
Kana10mo ago
Ah I see. So for deno it uses a client released by windmill? Or why is it importing it from https://deno.land/x/windmill@v1.88.1/mod.ts ?