Deno usage

Hey, has anyone by any chance trie using Kysely with deno using the postgresjs library? https://github.com/porsager/postgres
GitHub
GitHub - porsager/postgres: Postgres.js - The Fastest full featured...
Postgres.js - The Fastest full featured PostgreSQL client for Node.js and Deno - GitHub - porsager/postgres: Postgres.js - The Fastest full featured PostgreSQL client for Node.js and Deno
Solution:
Hey! I was also searching for any examples of postgres-js usage in deno. Didn't find any but managed to set it up using https://github.com/igalklebanov/kysely-postgres-js adapter `// import_map.json { "imports": {...
GitHub
GitHub - igalklebanov/kysely-postgres-js: Kysely dialect for Postgr...
Kysely dialect for PostgreSQL using the Postgres.js client. - GitHub - igalklebanov/kysely-postgres-js: Kysely dialect for PostgreSQL using the Postgres.js client.
Jump to solution
1 Reply
Solution
Gaspero
Gaspero14mo ago
Hey! I was also searching for any examples of postgres-js usage in deno. Didn't find any but managed to set it up using https://github.com/igalklebanov/kysely-postgres-js adapter // import_map.json { "imports": { "kysely": "https://cdn.jsdelivr.net/npm/[email protected]/dist/esm/index.js", "postgres": "https://deno.land/x/[email protected]/mod.js", "kysely-postgres-js": "https://cdn.jsdelivr.net/npm/kysely-postgres-js/dist/esm/index.js" } } // index.ts import { PostgresJSDialect } from "kysely-postgres-js" import { GeneratedAlways, Kysely, } from 'kysely' import postgres from 'postgres' // ... const db = new Kysely<Database>({ dialect: new PostgresJSDialect({ postgres: postgres(DATABASE_URL), }), })
GitHub
GitHub - igalklebanov/kysely-postgres-js: Kysely dialect for Postgr...
Kysely dialect for PostgreSQL using the Postgres.js client. - GitHub - igalklebanov/kysely-postgres-js: Kysely dialect for PostgreSQL using the Postgres.js client.

Did you find this page helpful?