Skip to content

Releases: medz/prisma-dart

Prisma Client Dart v4.0.0-beta.2

25 Jan 01:46
Compare
Choose a tag to compare

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

  1. Bug: Use relative paths to execute the engine.

v3.4.8

25 Jan 01:44
Compare
Choose a tag to compare
  • Bug: query engine working on pwd is not the project root directory. #326

Prisma Client Dart v3.4.7

25 Jan 01:22
Compare
Choose a tag to compare

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

  1. 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

18 Jan 19:06
Compare
Choose a tag to compare

To install Prisma Client Dart v4.0.0-beta.1 run:

dart pub add orm:4.0.0-beta.1

Or update your pubspec.yaml file:

dependencies:
  orm: 4.0.0-beta.1

What's Changed

  • fix relations are throwing error when you use include, #324

Thanks

@kidusdev

Prisma Client Dart v4.0.0-beta

17 Jan 03:17
Compare
Choose a tag to compare

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:

  1. Client API Reference
  2. Model Delegate API Reference

Prisma Dart client v4.0.0-alpha.5

13 Jan 11:29
Compare
Choose a tag to compare

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

  1. FIX fix transaction isolation level not expected.

Prisma Dart client v4.0.0-alpha.3

12 Jan 09:21
Compare
Choose a tag to compare
Pre-release

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

  1. Dump webfetch to 0.0.14 version.
  2. Fixed using a model name with an underscore (_) in schema.prisma causing the generator to fail. - #317 #316

Prisma Dart client v4.0.0-alpha.4

12 Jan 21:28
Compare
Choose a tag to compare
Pre-release

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

  1. OPTIMIZATION Prisma Dart client generator outputs more user-friendly error messages that help you know where the problem lies.
  2. REFACTOR Adjust src code storage structure.
  3. FIX Rethrow start error
  4. FIX Fix input types required multiple fields.
  5. FIX Fix relation count not arguments in include.

Prisma Dart client v4.0.0-alpha.2

05 Jan 14:06
Compare
Choose a tag to compare
Pre-release

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

  1. Change Dart SDK version to ^3.2.0
  2. 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

04 Jan 01:55
Compare
Choose a tag to compare

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

  1. The binary engine will be copied to the current working command and named prisma-query-engine
  2. 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