flutter_orm_m8 0.7.1+2

  • README.md
  • CHANGELOG.md
  • Example
  • Installing
  • Versions
  • 72

(Deprecated) Flutter ORM Mate - flutter_orm_m8 #

See f_orm_m8 for new updated framework

[Unreleased]

[0.7.1+2] - 2019-05-03

  • Fix package description

Changed #

[0.7.1+1] - 2019-04-29

Changed #

  • Marked as deprecated. Replaced by f_orm_m8
  • See f_orm_m8 for new updated framework

[0.7.1] - 2019-04-29

Changed #

  • flutter_orm_m8.dart exports the composite_constraint
  • The README.md was refined

[0.7.0] - 2019-04-29

Added #

  • CompositeConstraintType - enum to signal constraints that are candidates to composition
  • CompositeConstraint - describe the constraints that require non default naming or aggregation with another constraint with same name and type

Changed #

  • The DataColumn constructor parameters. The current version requires a mandatory name. The parameter metadataLevel is now named and optional. A third optional named parameter compositeConstraints as a list of CompositeConstraint was added.
  • ColumnMetadata fields name to lowerCamelCase
  • TableMetadata fields name to lowerCamelCase

[0.6.0] - 2019-04-15

Changed #

  • The DbAccountEntity fields. It received a new bool field named isCurrent

[0.5.1] - 2019-04-08

Fixed #

  • The pubspec description length must be between 60 and 180 characters

[0.5.0] - 2019-04-08

Added #

  • DbOpenEntity - for free DataTables with unconstrained PK
  • Test for DbOpenEntity

Changed #

  • The README.md was extended
  • The CHANGELOG was aligned with keepachangelog

[0.4.0] - 2019-04-02

Added #

  • TableMetadata to enhance DataTable. Three options:

    • SoftDeletable
    • TrackCreate
    • TrackUpdate

Changed #

  • All the fields in DbEntity and descendants goes public
  • Removed all methods from DbEntity and descendants to keep the models as plain as possible

[0.3.0] - 2019-03-15

Changed #

  • DbEntity:
    • Adding abstract method getDbEntityFromMap(Map<String, dynamic> map);

[0.2.0] - 2019-03-08

Added #

  • Base classes for:
    • DbEntity
    • DbAccountEntity
    • DbAccountRelatedEntity

[0.1.0] - 2019-03-03

Changed #

  • Switching from flutter_test to test
  • Removing flutter dependencies

[0.0.3] - 2019-03-02

Changed #

  • Shifting column options values with one bit
  • Enhancing documentation
  • Reorganizing example

[0.0.2] - 2019-03-01

Added #

  • Adding some example usage

[0.0.1] - 2019-03-01

Added #

  • Basic annotations for ORM extensions
  • ColumnMetadata options:
    • Ignore
    • PrimaryKey
    • Unique
    • NotNull
    • AutoIncrement
    • Indexed
  • DataTable with name
  • DataColumn with name and a bit mask for required ColumnMetadata's

example/example.dart

import 'package:flutter_orm_m8/flutter_orm_m8.dart';

@DataTable(
    "health_issues",
    TableMetadata.softDeletable |
        TableMetadata.trackCreate |
        TableMetadata.trackUpdate)
class HealthIssue implements DbAccountRelatedEntity {
  @DataColumn("id",
      metadataLevel: ColumnMetadata.primaryKey |
          ColumnMetadata.unique |
          ColumnMetadata.autoIncrement)
  int id;

  @DataColumn("account_id", compositeConstraints: [
    CompositeConstraint(
        name: "uq_account_entry",
        constraintType: CompositeConstraintType.unique)
  ])
  int accountId;

  @DataColumn("description", compositeConstraints: [
    CompositeConstraint(
        name: "uq_account_entry",
        constraintType: CompositeConstraintType.unique)
  ])
  String description;

  @DataColumn("record_date", compositeConstraints: [
    CompositeConstraint(
        name: "ix_record_date", constraintType: CompositeConstraintType.indexed)
  ])
  int recordDate;

  HealthIssue(this.accountId, this.description);
}

Use this package as a library

1. Depend on it

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


dependencies:
  flutter_orm_m8: ^0.7.1+2

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter pub get

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

3. Import it

Now in your Dart code, you can use:


import 'package:flutter_orm_m8/flutter_orm_m8.dart';
  
Version Uploaded Documentation Archive
0.7.1+2 May 3, 2019 Go to the documentation of flutter_orm_m8 0.7.1+2 Download flutter_orm_m8 0.7.1+2 archive
0.7.1+1 May 2, 2019 Go to the documentation of flutter_orm_m8 0.7.1+1 Download flutter_orm_m8 0.7.1+1 archive
0.7.1 Apr 29, 2019 Go to the documentation of flutter_orm_m8 0.7.1 Download flutter_orm_m8 0.7.1 archive
0.7.0 Apr 28, 2019 Go to the documentation of flutter_orm_m8 0.7.0 Download flutter_orm_m8 0.7.0 archive
0.6.0 Apr 15, 2019 Go to the documentation of flutter_orm_m8 0.6.0 Download flutter_orm_m8 0.6.0 archive
0.5.1 Apr 7, 2019 Go to the documentation of flutter_orm_m8 0.5.1 Download flutter_orm_m8 0.5.1 archive
0.5.0 Apr 7, 2019 Go to the documentation of flutter_orm_m8 0.5.0 Download flutter_orm_m8 0.5.0 archive
0.4.0 Apr 2, 2019 Go to the documentation of flutter_orm_m8 0.4.0 Download flutter_orm_m8 0.4.0 archive
0.3.0 Mar 15, 2019 Go to the documentation of flutter_orm_m8 0.3.0 Download flutter_orm_m8 0.3.0 archive
0.2.0 Mar 8, 2019 Go to the documentation of flutter_orm_m8 0.2.0 Download flutter_orm_m8 0.2.0 archive

All 14 versions...

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

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

  • Dart: 2.3.2
  • pana: 0.12.18

Platforms

Detected platforms: Flutter, web, other

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

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.68.0 <3.0.0
meta ^1.1.6 1.1.7
Dev dependencies
test ^1.3.3