Prisma Dart client v4.0.0-alpha.0 #292
medz
announced in
Announcements
Replies: 2 comments 4 replies
-
I would like to help with testing, will this work on Flutter Mac?(sqlite version) |
Beta Was this translation helpful? Give feedback.
2 replies
-
Do I understand it correctly, that I can not use Prisma with SQLite natively on Android/iOS, but remote only? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
To install Prisma Dart client v4.0.0-alpha.0 run:
To upgrade to Prisma Dart client v4.0.0-alpha.0, Please follow the migration guide and update your
pubspec.yaml
file:What's Changed
select
feature (incomplete, currently only support rough one-level Model fields)include
feature (incomplete, currently only support rough one-level Model fields)PrismaUnion
regression, now can structure nested inputs of multiple parameters via unionPrismaNull
regression, now support databasenull
data settingorm
as the base package for developing Dart Prisma ecosystem packagesDecimal
type support (from decimal package, exported byorm
proxy)Migration Guide (from v3)
Step 1: Update your
pubspec.yaml
fileStep 2: Update prisma schame
Previous generator configuration:
Current generator configuration:
If you have
orm
installed globally,provider
can useprisma-client-dart
directly:Step 3: Configure your engine (in
schema.prisma
)Step 4: Generate client
Setp 5: Update your code
Previous import use
[path]/prisma_client.dart
, now use[path]/client.dart
:Now the client will generate three files:
client.dart
- Client implementation (interact with Prisma engine)types.dart
- All input/output typesdmmf.dart
- DMMF data structureBeta Was this translation helpful? Give feedback.
All reactions