Prisma better-sqlite3 adapter resolves relative paths on connect
@aayaan-sahu▲ 0 net votes
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.