Skip to content
pubscout

angel3_orm

10.1.0, released 14 days ago by dukefirehawk.com

Runtime support and query builder for Angel3 ORM.

WASM-ready
$ flutter pub add angel3_orm
Source repository

What it does

Provides database-agnostic query building, relation loading, and runtime support for Angel3 ORM models. Works alongside database executors such as PostgreSQL, MySQL, and MariaDB.

AI-written summary of version 10.1.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You are building a backend application using the Angel3 ecosystem.
  • You need a type-safe, code-generated query builder for SQL databases.

Skip it when

  • You are writing a standard Flutter frontend app that talks directly to local SQLite databases (use drift or sqflite instead).
  • You do not use code generation or the Angel3 backend framework.

Strengths

  • Database-agnostic query builder supporting PostgreSQL, MySQL, and MariaDB.
  • Handles relations like HasOne, BelongsTo, HasMany, and ManyToMany cleanly.
  • Supports advanced features like skipLocked for concurrency.

Weaknesses

  • Requires external database driver executors (e.g., angel3_orm_postgres or angel3_orm_mysql).
  • Breaking changes between minor/major versions require careful migration and model regeneration.

Setup

Kind
Pure Dart
Effort
Medium
Code generation
Yes (build_runner)
Direct dependencies
6

Requires adding angel3_orm to dependencies, configuring database executors, and running build_runner to generate query classes.

var query = EmployeeQuery()
  ..where!.firstName.equals('Rich')
  ..orWhere((w) => w.salary.greaterThanOrEqualTo(75000));
List<Employee> employees = await query.get(executor);

Alternatives

Packages that do the same job and could replace angel3_orm.

  • drift

    If you want a robust, reactive SQL database library specifically designed for Dart and Flutter with rich compile-time safety.

  • sqflite

    If you just need raw SQLite access on mobile platforms without heavy ORM layers.

Works with

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