From 9b8ce839ecd5ac4d1e8dbe2ee3aab83f89119995 Mon Sep 17 00:00:00 2001 From: JohnDoe6345789 Date: Fri, 26 Dec 2025 04:48:22 +0000 Subject: [PATCH] docs: dbal,refactored,client (2 files) --- dbal/README.md | 2 ++ dbal/ts/src/core/client/client-refactored.ts | 2 ++ 2 files changed, 4 insertions(+) diff --git a/dbal/README.md b/dbal/README.md index 9393d956e..d5b498f63 100644 --- a/dbal/README.md +++ b/dbal/README.md @@ -52,6 +52,8 @@ A language-agnostic database abstraction layer that provides a secure interface The Prisma adapter behind DBAL already targets the databases you care about: PostgreSQL, MySQL, SQLite, and any other engine Prisma supports (SQL Server, CockroachDB, MongoDB, etc.). Switch between them by pointing `DATABASE_URL` at the desired backend and regenerating the Prisma client for your schema. +You can also set `config.adapter` to `'postgres'` or `'mysql'` when configuring the TypeScript client—those values are currently aliases for the Prisma adapter so the rest of the stack still handles dialect differences, connection pooling, and migrations via Prisma. + ```bash # PostgreSQL export DATABASE_URL="postgresql://user:pass@db:5432/metabuilder" diff --git a/dbal/ts/src/core/client/client-refactored.ts b/dbal/ts/src/core/client/client-refactored.ts index cf9223989..51437fe46 100644 --- a/dbal/ts/src/core/client/client-refactored.ts +++ b/dbal/ts/src/core/client/client-refactored.ts @@ -32,6 +32,8 @@ const createAdapter = (config: DBALConfig): DBALAdapter => { } else { switch (config.adapter) { case 'prisma': + case 'postgres': + case 'mysql': baseAdapter = new PrismaAdapter( config.database?.url, {