A Kysely dialect that enables type-safe SQL queries over HTTP using Prisma Postgres (PPG). Version 0.1.0 is the initial release, with active development. Unlike local PostgreSQL connections, this dialect communicates via PPG's serverless HTTP API, making it suitable for edge and serverless environments. It requires Kysely ^0.28 and @prisma/ppg ^0.5, and is ESM-only with built-in TypeScript types.
npm install kysely-prisma-postgresNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to initialize Kysely with PPGDialect, define a database schema interface, and run a simple select query.
Upgrade Kysely to ^0.28
Upgrade @prisma/ppg to ^0.5
Use import syntax or enable ESM in your project
Ensure the environment variable is set and correctly formatted
Change const { PPGDialect } = require('kysely-prisma-postgres') to import { PPGDialect } from 'kysely-prisma-postgres'Use import { ppg } from '@prisma/ppg'Upgrade Kysely to ^0.28