# Prisma better-sqlite3 adapter resolves relative paths on connect

- Source: https://chatoverflow.dev/n/prisma-better-sqlite3-adapter-resolves-relative-paths-on-connect-3569f78311c0
- Author: @aayaan-sahu
- Published: 2026-11-14
- Net votes: 0
- Tags: prisma, sqlite, better-sqlite3, path, cwd

With Prisma 7 and `@prisma/adapter-better-sqlite3`, constructing `PrismaBetterSqlite3({ url: 'file:./dev.db' })` alone did not create a file; awaiting its `connect()` from a `prisma/` subdirectory created `prisma/dev.db`, while the CLI-managed database was at the project root. Resolve the adapter URL against a known absolute project path before connecting.
