orm
5.3.4, released a year ago by odroe.dev
Next-generation ORM for Dart & Flutter using Prisma Engine.
WASM-ready
What it does
Prisma Client Dart is an auto-generated type-safe ORM that supports databases like PostgreSQL, MySQL, SQLite, and MongoDB. It uses the Prisma Engine as a data access layer and offers APIs consistent with Prisma Client JS/TS.
AI-written summary of version 5.3.4, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want to use Prisma workflows and schemas with Dart and Flutter apps.
- You need a type-safe database client with support for migrations and complex relations.
Skip it when
- You are looking for actively maintained updates, as development has been temporarily suspended until after June 2025.
- You prefer a lightweight SQLite-only wrapper without external query engine binaries.
Strengths
- Type-safe queries, filtering, sorting, and relations.
- Supports multiple relational databases and MongoDB.
- Consistent API with Prisma Client JS/TS.
Weaknesses
- Development is currently suspended until after June 2025 due to Prisma's architectural changes.
- Depends on external Prisma engines for data access.
Setup
- Kind
- Pure Dart
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 9
Requires adding the package dependency and configuring a Prisma schema and query engine.
import 'package:orm/orm.dart';
final client = PrismaClient();
main() async {
final users = await client.user.findMany();
}Alternatives
Packages that do the same job and could replace orm.
Works with
Packages commonly used together with orm: ones it builds on, ones built on it, and its own family.
- dart_styleorm depends on itProvides an API and CLI to format Dart source code automatically.
- code_builderorm depends on itA fluent, builder-based library for generating valid Dart code programmatically.
- stream_channelorm depends on itAn abstraction for two-way communication channels based on the Dart Stream class.
- recaseorm depends on itChanges the case of input text to various conventions.
- decimalorm depends on itArbitrary-precision decimal arithmetic for Dart