Releases: medz/prisma-dart
Prisma Client Dart v4.0.0-beta.2
To install Prisma Client Dart v4.0.0-beta.2 run:
dart pub add orm:4.0.0-beta.2
Or update your pubspec.yaml
file:
dependencies:
orm: 4.0.0-beta.2
What's Changed
- Bug: Use relative paths to execute the engine.
v3.4.8
Prisma Client Dart v3.4.7
To install Prisma Dart client v3.4.7, run the following command:
dart pub add orm:3.4.7
To update Prisma Dart client v3.4.7, update the orm
dependency in your pubspec.yaml
file.
dependencies:
orm: ^3.4.7
What's Changed
- Bug: Permission issues that may be caused by using absolute paths are resolved to paths based on
pwd
.
Prisma Client Dart v4.0.0-beta.1
Prisma Client Dart v4.0.0-beta
To install Prisma Client Dart v4.0.0-beta run:
dart pub add orm:4.0.0-beta
Or update your pubspec.yaml
file:
dependencies:
orm: 4.0.0-beta
What's Changed
The first Beta version is released. This version is a major version. We will conduct a lot of testing on this version to ensure the stability of this version.
In addition, there are no actual code updates in this version, the documentation brings updates to the API Reference:
Prisma Dart client v4.0.0-alpha.5
To install Prisma Dart client v4.0.0-alpha.5 run:
dart pub add orm:4.0.0-alpha.5
Or update your pubspec.yaml
file:
dependencies:
orm: 4.0.0-alpha.5
What's Changed
- FIX fix transaction isolation level not expected.
Prisma Dart client v4.0.0-alpha.3
To install Prisma Dart client v4.0.0-alpha.3 run:
dart pub add orm:4.0.0-alpha.3
Or update your pubspec.yaml
file:
dependencies:
orm: 4.0.0-alpha.3
What's Changed
Prisma Dart client v4.0.0-alpha.4
To install Prisma Dart client v4.0.0-alpha.4 run:
dart pub add orm:4.0.0-alpha.4
Or update your pubspec.yaml
file:
dependencies:
orm: 4.0.0-alpha.4
What's Changed
- OPTIMIZATION Prisma Dart client generator outputs more user-friendly error messages that help you know where the problem lies.
- REFACTOR Adjust src code storage structure.
- FIX Rethrow start error
- FIX Fix input types required multiple fields.
- FIX Fix relation count not arguments in include.
Prisma Dart client v4.0.0-alpha.2
To install Prisma Dart client v4.0.0-alpha.2 run:
dart pub add orm:4.0.0-alpha.2
Or update your pubspec.yaml
file:
dependencies:
orm: 4.0.0-alpha.2
What's Changed
- Change Dart SDK version to
^3.2.0
- Support RAW query and execute feature, See Raw queries
Raw queries
You can use $raw
to execute raw queries
$raw.query
Execute a raw query, for example:
final result = await prisma.$raw.query('SELECT * FROM "User"'); // PostgreSQL
$raw.execute
Execute a raw query, for example:
final result = await prisma.$raw.execute('DELETE FROM "User"'); // PostgreSQL
Parameters
$raw.query
and $raw.execute
support parameters, for example:
// PostgreSQL
final result = await prisma.$raw.query(
'SELECT * FROM "User" WHERE "id" = \$1',
[1],
);
// MySQL
final result = await prisma.$raw.query(
'SELECT * FROM `User` WHERE `id` = ?',
[1],
);
SQL template string see your used database.
Prisma Dart client v3.4.6
To install Prisma Dart client v3.4.6, run the following command:
dart pub add orm
To update Prisma Dart client v3.4.6, update the orm
dependency in your pubspec.yaml
file.
dependencies:
orm: ^3.4.6
What's Changed
- The binary engine will be copied to the current working command and named
prisma-query-engine
- Add the
.dart_tool
directory to the search directory
About not found prisma-query-engine
error
Cannot find the query engine binary (Basename: C:\path\does\not\matter\query-engine-windows.exe | prisma-query-engine)
If you just run your app using the dart run {script}.dart command, you don’t need to do anything.
If you use dart compile exe to package your app as a executable, copy prisma-query-engine to the same location as your run file