angel_migration_runner 2.0.0-alpha.4

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

migration #

A PostgreSQL database migration framework built on Angel's ORM.

2.0.0-alpha.4 #

  • Include the names of migration classes when running.

2.0.0-alpha.3 #

  • Run migrations in reverse on rollback.

2.0.0-alpha.2 #

  • Run migrations in reverse on reset.

2.0.0-alpha.1 #

  • Cast Iterables via .cast(), rather than as.

2.0.0-alpha #

  • Dart 2 update.

1.0.0-alpha+5 #

Schema#drop now has a named cascade parameter, of type bool.

1.0.0-alpha+1 #

  • You can now pass a connected parameter.

example/main.dart

import 'package:angel_migration_runner/angel_migration_runner.dart';
import 'package:angel_migration_runner/postgres.dart';
import 'package:postgres/postgres.dart';
import '../../angel_migration/example/todo.dart';

var migrationRunner = new PostgresMigrationRunner(
  new PostgreSQLConnection('127.0.0.1', 5432, 'test',
      username: 'postgres', password: 'postgres'),
  migrations: [
    new UserMigration(),
    new TodoMigration(),
  ],
);

main(List<String> args) => runMigrations(migrationRunner, args);

Use this package as a library

1. Depend on it

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


dependencies:
  angel_migration_runner: ^2.0.0-alpha.4

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_migration_runner/angel_migration_runner.dart';
  
Version Uploaded Documentation Archive
2.0.0-alpha.4 Feb 12, 2019 Go to the documentation of angel_migration_runner 2.0.0-alpha.4 Download angel_migration_runner 2.0.0-alpha.4 archive
2.0.0-alpha.3 Feb 5, 2019 Go to the documentation of angel_migration_runner 2.0.0-alpha.3 Download angel_migration_runner 2.0.0-alpha.3 archive
2.0.0-alpha.2 Feb 5, 2019 Go to the documentation of angel_migration_runner 2.0.0-alpha.2 Download angel_migration_runner 2.0.0-alpha.2 archive
2.0.0-alpha.1 Jan 22, 2019 Go to the documentation of angel_migration_runner 2.0.0-alpha.1 Download angel_migration_runner 2.0.0-alpha.1 archive
2.0.0-alpha Oct 22, 2018 Go to the documentation of angel_migration_runner 2.0.0-alpha Download angel_migration_runner 2.0.0-alpha archive
1.0.0-alpha+6 Nov 23, 2017 Go to the documentation of angel_migration_runner 1.0.0-alpha+6 Download angel_migration_runner 1.0.0-alpha+6 archive
1.0.0-alpha+5 Oct 21, 2017 Go to the documentation of angel_migration_runner 1.0.0-alpha+5 Download angel_migration_runner 1.0.0-alpha+5 archive
1.0.0-alpha+4 Oct 21, 2017 Go to the documentation of angel_migration_runner 1.0.0-alpha+4 Download angel_migration_runner 1.0.0-alpha+4 archive
1.0.0-alpha+3 Oct 21, 2017 Go to the documentation of angel_migration_runner 1.0.0-alpha+3 Download angel_migration_runner 1.0.0-alpha+3 archive
1.0.0-alpha+2 Aug 4, 2017 Go to the documentation of angel_migration_runner 1.0.0-alpha+2 Download angel_migration_runner 1.0.0-alpha+2 archive

All 12 versions...

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

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

  • Dart: 2.1.0
  • pana: 0.12.13+1

Platforms

Detected platforms: Flutter, web, other

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

Health issues and suggestions

Document public APIs. (-0.38 points)

46 out of 47 API elements have no dartdoc comment.Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API.

Fix lib/src/postgres/runner.dart. (-0.50 points)

Analysis of lib/src/postgres/runner.dart reported 1 hint:

line 16 col 65: Use = to separate a named parameter from its default value.

Fix lib/src/postgres/schema.dart. (-0.50 points)

Analysis of lib/src/postgres/schema.dart reported 1 hint:

line 27 col 44: Use = to separate a named parameter from its default value.

Maintenance suggestions

Package is pre-release. (-5 points)

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

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev <3.0.0
angel_migration ^2.0.0-alpha 2.0.0-alpha.1
angel_orm ^2.0.0-dev.2 2.0.0-dev.21
args ^1.0.0 1.5.1
postgres >=0.9.5 <2.0.0 1.0.2
Transitive dependencies
charcode 1.1.2
collection 1.14.11
convert 2.1.1
crypto 2.0.6
intl 0.15.7
meta 1.1.7
path 1.6.2
source_span 1.5.4
string_scanner 1.0.4
term_glyph 1.1.0
typed_data 1.1.6