Prisma Client Dart is an auto-generated type-safe ORM. It uses Prisma Engine as the data access layer and is as consistent as possible with the Prisma Client JS/TS APIs.
After running the example, I receive the following exception.
Unhandled exception:
PrismaClientInitializationError: QE404 No binary engine found, please make sure any of the following locations contain the executable file: {prisma-query-engine, prisma/prisma-query-engine, .dart_tool/prisma-query-engine}
As far as I understand, this is incorrect behavior, right?
I may be mistaken, but it seems that prisma-query-engine should indeed be copied to the root of the project during generation, as shown in the example below:
Example project example.zip
Steps to reproduce:
dart pub get
npm i --save-dev prisma@latest
npx prisma generate
dart compile exe bin/example.dart -o bin/example
./bin/example
After running the example, I receive the following exception.
As far as I understand, this is incorrect behavior, right?
I may be mistaken, but it seems that prisma-query-engine should indeed be copied to the root of the project during generation, as shown in the example below: