angel_orm_generator 1.0.0-alpha+6

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 68

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.

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

with Flutter:


$ flutter packages get

Alternatively, your editor might support pub get or 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

Analysis

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

  • Dart: 2.0.0-dev.49.0
  • pana: 0.10.6

Scores

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

Platforms

Detected platforms: Flutter, other

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

Suggestions

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

Dependencies

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 2.0.5
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 2.0.1
args 1.4.2
async 2.0.6
build 0.12.2
charcode 1.1.1
cli_util 0.1.2+1
collection 1.14.9
convert 2.0.1
crypto 2.0.2+1
csslib 0.14.1
dart2_constant 1.0.1+dart2
dart_style 1.0.9+1 1.0.10
front_end 0.1.0-alpha.4.1 0.1.0-alpha.11
func 1.0.0
glob 1.1.5
html 0.13.3
id 1.0.16
intl 0.15.6
isolate 1.1.0 2.0.0
kernel 0.3.0-alpha.1.1 0.3.0-alpha.11
logging 0.11.3+1
matcher 0.12.2
package_config 1.0.3
path 1.5.1
plugin 0.2.0+2
pool 1.3.4
postgres 0.9.9
quiver 0.24.0 0.29.0+1
source_gen 0.7.5+1 0.8.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