postgres
postgres copied to clipboard
upgrade for deno2, publish to jsr https://jsr.io/@y0/postgres
fix https://github.com/porsager/postgres/issues/839
deno2 & jsr : https://deno.com/blog/jsr_open_beta
publish method
- get token for https://jsr.io/account/tokens
export DENO_AUTH_TOKENS=
- npm run deno:publish
test
deno add jsr:@y0/postgres
crate mod.js
import postgres from '@y0/postgres'
const pg = postgres(process.env.PG_URL)
console.log( await pg`SELECT 1` )
deno -A mod.js
Hi @i18nsite! Nice work. What about fixing transpile.deno.js as in e.g. https://github.com/porsager/postgres/pull/771?