What is a database adapter, and why does Prisma 7 need one?
If you have used Prisma 7 for the first time and seen something like this: const adapter = new PrismaBetterSqlite3 ({ url : databaseUrl }); const prisma = new PrismaClient ({ adapter }); you might be wondering: what is this adapter thing, why do I need it, and what happens when I want to use PostgreSQL or MySQL in production? Let us walk through it. The real world version of an adapter Imagine you bring your US laptop charger to Europe. Your charger has flat US prongs. The wall has round EU sock
Comment
Sign in to join the discussion.
Loading comments…