Skip to content
pubscout

orm

5.3.4, released a year ago by odroe.dev

Next-generation ORM for Dart & Flutter using Prisma Engine.

WASM-ready
$ flutter pub add orm
Source repository

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.

  • drift

    A robust, reactive SQLite database library for Dart and Flutter with heavy query type safety and active maintenance.

  • sqflite

    A straightforward, lightweight SQLite plugin for Flutter if you only need local SQLite access.

Works with

Packages commonly used together with orm: ones it builds on, ones built on it, and its own family.