example of kysely running on deno deploy?
Deno Deploy awesomely can connect to postgres directly from the edge https://deno.com/blog/deploy-postgres-at-the-edge so I was hoping to use https://github.com/koskimas/kysely#deno
Was trying to make it work like this:
But am getting
Unknown Authentication type, code: 10, message: SCRA
Deno Blog
Connecting to Postgres from the edge
Many serverless at edge products can not connect to Postgres because they don't support TCP. Deno Deploy can.
GitHub
GitHub - koskimas/kysely: A type-safe typescript SQL query builder
A type-safe typescript SQL query builder. Contribute to koskimas/kysely development by creating an account on GitHub.
2 Replies
Why such an old version of deno std ?
you imported 0.114.0
latest is 0.173.0
Probably because I copy and paste from examples that are not being updated 😬
Thanks @ndh3193 updating deno std
import { serve } from "https://deno.land/std@0.175.0/http/server.ts"
makes the function runnable, but unfortunately upon invocation I get
Not sure if that's a Deno deploy quirk