angel_orm_generator 1.0.0-alpha+6

  • Installing
  • Versions
  • 64


Source code generators for Angel's ORM. This package can generate:

  • A strongly-typed ORM
  • SQL migration scripts

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


  • DateTime is now CAST on insertion and update operations.


Implemented @hasOne, with tests. Still missing @hasMany. belongsToMany will likely be scrapped.


  • Added support for belongsTo relationships. Still missing hasOne, hasMany, belongsToMany.


  • Closed #12. insertX and updateX now use rc.camelCase, instead of rc.snakeCase.
  • Closed #13. Added limit and offset properties to XQuery.
  • Closed #14. Refined the or method (it now takes an XQueryWhere), and removed and and not.
  • Closed #16. Added sortAscending and sortDescending to XQuery.
  • Closed #17. delete now uses toSql from XQuery.
  • Closed #18. XQuery now supports union and unionAll.

1. Depend on it

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

  angel_orm_generator: "^1.0.0-alpha+6"

2. Install it

You can install packages from the command line:

with pub:

$ pub get

Alternatively, your editor might support pub 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_generator/angel_orm_generator.dart';
Version Uploaded Documentation Archive
1.0.0-alpha+6 Dec 8, 2017 Go to the documentation of angel_orm_generator 1.0.0-alpha+6 Download angel_orm_generator 1.0.0-alpha+6 archive
1.0.0-alpha+5 Nov 20, 2017 Go to the documentation of angel_orm_generator 1.0.0-alpha+5 Download angel_orm_generator 1.0.0-alpha+5 archive
1.0.0-alpha+4 Sep 15, 2017 Go to the documentation of angel_orm_generator 1.0.0-alpha+4 Download angel_orm_generator 1.0.0-alpha+4 archive
1.0.0-alpha+3 Aug 1, 2017 Go to the documentation of angel_orm_generator 1.0.0-alpha+3 Download angel_orm_generator 1.0.0-alpha+3 archive
1.0.0-alpha+2 Jul 15, 2017 Go to the documentation of angel_orm_generator 1.0.0-alpha+2 Download angel_orm_generator 1.0.0-alpha+2 archive
1.0.0-alpha+1 Jul 14, 2017 Go to the documentation of angel_orm_generator 1.0.0-alpha+1 Download angel_orm_generator 1.0.0-alpha+1 archive
1.0.0-alpha Jul 10, 2017 Go to the documentation of angel_orm_generator 1.0.0-alpha Download angel_orm_generator 1.0.0-alpha archive


This feature is new.
We welcome feedback.
More details: scoring.

We analyzed this package, and provided a score, details, and suggestions below.

  • tool failures on Feb 16, 2018
  • Dart: 2.0.0-dev.20.0
  • pana: 0.10.1


Describes how popular the package is relative to other packages. [more]
37 / 100
Code health derived from static analysis. [more]
89 / 100
Reflects how tidy and up-to-date the package is. [more]
93 / 100
Overall score:
Weighted score of the above. [more]


Detected platforms: other

Primary library: package:angel_orm_generator/angel_orm_generator.dart with components: io, build, mirrors.


  • Fix lib/src/builder/orm/postgres_build_context.dart.

    Strong-mode analysis of lib/src/builder/orm/postgres_build_context.dart failed with the following error:

    line: 6 col: 8
    Target of URI doesn't exist: 'package:angel_model/angel_model.dart'.

  • Fix issues reported by dartanalyzer.

    dartanalyzer reported 1 error(s) and 0 warning(s).

  • Package is pre-release.

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

  • The description is too short.

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

  • Maintain an example.

    Create a short demo in the example/ directory to show how to use this package. Common file name patterns include: main.dart, example.dart or you could also use angel_orm_generator.dart.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.19.0
angel_orm ^1.0.0-alpha 1.0.0-alpha+12
angel_serialize_generator ^1.0.0-alpha 1.0.0
code_builder ^1.0.0 1.0.4 3.0.3
inflection ^0.4.1 0.4.1
meta ^1.0.0 1.1.2
recase ^1.0.0 1.0.0+1
Transitive dependencies
analyzer 0.30.0+4 0.31.1
angel_serialize 1.0.0
args 1.3.0
async 2.0.3 2.0.4
build 0.12.0+1
charcode 1.1.1
cli_util 0.1.2+1
collection 1.14.5
convert 2.0.1
crypto 2.0.2+1
csslib 0.14.1
dart_style 1.0.9+1
front_end 0.1.0-alpha.4.1 0.1.0-alpha.10
func 1.0.0
glob 1.1.5
html 0.13.2+2
id 1.0.16
intl 0.15.2
isolate 1.1.0
kernel 0.3.0-alpha.1.1 0.3.0-alpha.10
logging 0.11.3+1
matcher 0.12.1+4
package_config 1.0.3
path 1.5.1
plugin 0.2.0+2
pool 1.3.4
postgres 0.9.6
quiver 0.24.0 0.28.0
source_gen 0.7.5+1
source_span 1.4.0
stack_trace 1.9.2
string_scanner 1.0.2
typed_data 1.1.5
utf 0.9.0+4
watcher 0.9.7+7
yaml 2.1.13
Dev dependencies
angel_diagnostics ^1.0.0
angel_framework ^1.0.0
angel_migration ^1.0.0-alpha
angel_test ^1.0.0
build_runner ^0.5.0
test ^0.12.0