angel_orm 2.0.0-dev.2

  • Example
  • Installing
  • Versions
  • 70


Runtime support for Angel's ORM. Includes a clean, database-agnostic query builder and relationship/join support.

For documentation about the ORM, head to the main project repo:


  • Renamed ORM to Orm.
  • Orm now requires a database type.


  • Restored all old PostgreSQL-specific annotations. Rather than a smart runtime, having a codegen capable of building ORM's for multiple databases can potentially provide a very fast ORM for everyone.


  • Removed PostgreSQL-specific functionality, so that the ORM can ultimately target all services.
  • Created a better Join model.
  • Created a far better Query model.
  • Removed lib/server.dart


  • Split into angel_orm.dart and server.dart. Prevents DDC failures.


  • Added a @belongsToMany annotation class.
  • Resolved #20. The PostgreSQLConnectionPool keeps track of which connections have been opened now.


  • DateTimeSqlExpressionBuilder will no longer automatically insert quotation marks around names.


  • Corrected a typo that was causing the aforementioned test failures. == becomes =.


  • Added a null-check in lib/src/query.dart#L24 to (hopefully) prevent it from crashing on Travis.


  • Added isIn, isNotIn, isBetween, isNotBetween to SqlExpressionBuilder and its subclasses.
  • Added a dependency on package:meta.


import 'package:angel_model/angel_model.dart';
import 'package:angel_orm/angel_orm.dart';

main() {


abstract class Company extends Model {
  String get name;

  bool get isFortune500;

abstract class _Employee extends Model {
  Company get company;

  String get firstName;

  String get lastName;

  double get salary;

  bool get isFortune500Employee => company.isFortune500;

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  angel_orm: ^2.0.0-dev.2

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter packages get

Alternatively, your editor might support pub get or flutter packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:angel_orm/angel_orm.dart';
Version Uploaded Documentation Archive
2.0.0-dev.2 Aug 24, 2018 Go to the documentation of angel_orm 2.0.0-dev.2 Download angel_orm 2.0.0-dev.2 archive
2.0.0-dev.1 Aug 24, 2018 Go to the documentation of angel_orm 2.0.0-dev.1 Download angel_orm 2.0.0-dev.1 archive
2.0.0-dev May 16, 2018 Go to the documentation of angel_orm 2.0.0-dev Download angel_orm 2.0.0-dev archive
1.0.0-alpha+12 Dec 7, 2017 Go to the documentation of angel_orm 1.0.0-alpha+12 Download angel_orm 1.0.0-alpha+12 archive
1.0.0-alpha+11 Nov 29, 2017 Go to the documentation of angel_orm 1.0.0-alpha+11 Download angel_orm 1.0.0-alpha+11 archive
1.0.0-alpha+10 Nov 23, 2017 Go to the documentation of angel_orm 1.0.0-alpha+10 Download angel_orm 1.0.0-alpha+10 archive
1.0.0-alpha+9 Nov 23, 2017 Go to the documentation of angel_orm 1.0.0-alpha+9 Download angel_orm 1.0.0-alpha+9 archive
1.0.0-alpha+8 Nov 18, 2017 Go to the documentation of angel_orm 1.0.0-alpha+8 Download angel_orm 1.0.0-alpha+8 archive
1.0.0-alpha+7 Jul 15, 2017 Go to the documentation of angel_orm 1.0.0-alpha+7 Download angel_orm 1.0.0-alpha+7 archive
1.0.0-alpha+6 Jul 15, 2017 Go to the documentation of angel_orm 1.0.0-alpha+6 Download angel_orm 1.0.0-alpha+6 archive

All 16 versions...

Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Oct 10, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0
  • pana: 0.12.4


Detected platforms: Flutter, web, other

No platform restriction found in primary library package:angel_orm/angel_orm.dart.

Health suggestions

Format lib/angel_orm.dart.

Run dartfmt to format lib/angel_orm.dart.

Format lib/src/migration.dart.

Run dartfmt to format lib/src/migration.dart.

Maintenance suggestions

The description is too short. (-20 points)

Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

Package is pre-release. (-5 points)

Pre-release versions should be used with caution, their API may change in breaking ways.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.1.2 <3.0.0
intl ^0.15.7 0.15.7
meta ^1.0.0 1.1.6
string_scanner ^1.0.0 1.0.4
Transitive dependencies
charcode 1.1.2
path 1.6.2
source_span 1.4.1
Dev dependencies
angel_model ^1.0.0