angel_orm_generator 1.0.0-alpha+6

  • Installing
  • Versions
  • 65


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.

Use this package as a library

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

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_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


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

  • Dart: 2.0.0-dev.60.0
  • pana: 0.11.3


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


Detected platforms: Flutter, other

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


  • Fix analysis and formatting issues.

    Analysis or formatting checks reported 4 errors 3 hints.

    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'.

    Run dartfmt to format lib/angel_orm_generator.dart.

    Similar analysis of the following files failed:

    • lib/src/builder/orm/migration.dart (hint)
    • lib/src/builder/orm/postgres.dart (hint)
  • 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 2.0.0-dev
angel_serialize_generator ^1.0.0-alpha 1.0.0 2.0.7
code_builder ^1.0.0 1.0.4 3.1.0
inflection ^0.4.1 0.4.1
meta ^1.0.0 1.1.5
recase ^1.0.0 1.0.0+1
Transitive dependencies
analyzer 0.30.0+4 0.32.1
angel_serialize 1.0.0 2.0.2
args 1.4.3
async 2.0.7
build 0.12.6
charcode 1.1.1
cli_util 0.1.3
collection 1.14.10
convert 2.0.1
crypto 2.0.3
csslib 0.14.4
dart2_constant 1.0.1+dart2
dart_style 1.0.9+1 1.0.14
front_end 0.1.0-alpha.4.1 0.1.1
func 1.0.0
glob 1.1.5
html 0.13.3+1
id 1.0.16
intl 0.15.6
isolate 1.1.0 2.0.1
kernel 0.3.0-alpha.1.1 0.3.1
logging 0.11.3+1
matcher 0.12.2+1
package_config 1.0.3
path 1.6.0
plugin 0.2.0+2
pool 1.3.5
postgres 0.9.9 1.0.0-beta.1
quiver 0.24.0 0.29.0+1
source_gen 0.7.5+1 0.8.1+3
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+8
yaml 2.1.14
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