angel_orm_generator 1.0.0-alpha+6

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 67

angel_orm_generator

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: https://github.com/angel-dart/orm

1.0.0-alpha+6

  • DateTime is now CAST on insertion and update operations.

1.0.0-alpha+3

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

1.0.0-alpha+2

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

1.0.0-alpha+1

  • 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:


dependencies:
  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
Popularity:
Describes how popular the package is relative to other packages. [more]
43
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
78
Overall:
Weighted score of the above. [more]
67
Learn more about scoring.

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

  • Dart: 2.0.0
  • pana: 0.11.8

Platforms

Detected platforms: unsure

Error(s) prevent platform classification:

Fix dependencies in pubspec.yaml.

Issues and suggestions

Fix dependencies in pubspec.yaml.

Running pub upgrade failed with the following output:

ERR: The current Dart SDK version is 2.0.0.
 
 Because angel_orm_generator depends on inflection >=0.2.0 which requires SDK version <2.0.0, version solving failed.

Fix platform conflicts.

Error(s) prevent platform classification:

Fix dependencies in pubspec.yaml.

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.

Format lib/angel_orm_generator.dart.

Run dartfmt to format lib/angel_orm_generator.dart.

Format lib/src/builder/orm/migration.dart.

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

Format lib/src/builder/orm/postgres.dart.

Run dartfmt to format lib/src/builder/orm/postgres.dart.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.19.0