orm 4.0.0-alpha.5 copy "orm: ^4.0.0-alpha.5" to clipboard
orm: ^4.0.0-alpha.5 copied to clipboard

Next-generation ORM for Dart & Flutter | PostgreSQL, MySQL, MariaDB, SQL Server, SQLite, MongoDB and CockroachDB.

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 #

  1. FIX fix transaction isolation level not expected.

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 #

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

  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.

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 #

  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 v4.0.0-alpha.1 #

To install Prisma Dart client v4.0.0-alpha.0 run:

dart pub add orm:4.0.0-alpha.1

Or update your pubspec.yaml file:

dependencies:
  orm: 4.0.0-alpha.1

What's Changed #

  1. Refactor the entire client generator
  2. PrismaClient is now generated by the generator
  3. Ability to operate transactions on your own
  4. Use binary engine by default
  5. Supports full select and include features.

Prisma Dart client v4.0.0-alpha.0 #

To install Prisma Dart client v4.0.0-alpha.0 run:

# If you are using Dart
dart pub add orm:4.0.0-alpha.0

# Or if you are using Flutter
flutter pub add orm:4.0.0-alpha.0

To upgrade to Prisma Dart client v4.0.0-alpha.0, Please follow the announcements and update your pubspec.yaml file:

dependencies:
  orm: 4.0.0-alpha.0

Read Prisma Dart Client v4.0.0-alpha.0 release notes on the Prisma Dart discussions

What's Changed #

  • Whole project refactoring
  • Remove any JSON serialization tool, now it's ready to use by just generating the client without any other dependencies and extra commands
  • Switch from GraphQL protocol to JSON protocol
  • Client takes a standalone Prisma engine instance
  • Client and all input/output types are standalone and can be distributed to any Dart platform
  • Add database field reference support
  • Support select feature (incomplete, currently only support rough one-level Model fields)
  • Support include feature (incomplete, currently only support rough one-level Model fields)
  • PrismaUnion regression, now can structure nested inputs of multiple parameters via union
  • PrismaNull regression, now support database null data setting
  • DMMF, generator helpers regression, no need to depend on other packages, can directly use orm as the base package for developing Dart Prisma ecosystem packages
  • Add Decimal type support (from decimal package, exported by orm proxy)
213
likes
0
pub points
88%
popularity

Publisher

verified publisherodroe.dev

Next-generation ORM for Dart & Flutter | PostgreSQL, MySQL, MariaDB, SQL Server, SQLite, MongoDB and CockroachDB.

Homepage
Repository (GitHub)
View/report issues

Funding

Consider supporting this project:

github.com
opencollective.com
www.patreon.com

License

unknown (license)

Dependencies

code_builder, dart_style, decimal, json_rpc_2, logging, path, recase, retry, stream_channel, webfetch

More

Packages that depend on orm