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.
BSD-3-CLAUSE License
Bot releases are hidden (Show)
Published by medz about 2 years ago
🌟 Help us spread the word about Prisma ORM for Dart by starring the repo or Tweeting about the release. 🌟
We have reasonably integrated all the packages we split before, before:
dependencies:
orm: 1.0.0
dev_dependencies:
prisma_cli: 1.0.0
Now:
dependencies:
orm: 1.0.0
Interactive transactions are a stable feature in Prisma For Dart, but a preview feature for the Prisma engine.
Interactive transactions are easier to handle for ORMs:
final result = prisma.$transaction((prisma) async {
final user = await prisma.user.create({
data: {
name: 'Odore',
},
});
final post = await prisma.post.create({
data: {
title: 'My first post',
content: 'This is my first post',
author: {
connect: {
id: user.id,
},
},
},
});
return post;
}
db pull
functiongenerate
commandprisma.$connect()
methodprisma.$disconnect()
method