furlong 1.0.0-dev+4

  • README.md
  • Installing
  • Versions
  • 30

furlong

SQLJocky migration tool. Will eventually work with SQLJocky2.

Todo

  • Alterations
  • Model generators
  • Command-line executable
  • Grinder examples
  • More examples
  • Use inflection package for pluralization

Examples

class SongMigration extends Migration {
  @override
  String get name => "Songs table";

  @override
  Future create(Migrator migrator) async {
    await migrator.create("songs", (TableSchema table) {
      table.primaryKey = table.integer("id", autoIncrement: true);
      
      table.string("artist_id");
      table.string("title");
      table.string("desc").nullable = true;
      table.timeStamp("created_at");
      table.timeStamp("updated_at");
    });
  }

  @override
  Future destroy(Migrator migrator) async {
    await migrator.drop(["songs"]);
  }
}

Use this package as a library

1. Depend on it

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


dependencies:
  furlong: ^1.0.0-dev+4

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:furlong/furlong.dart';
  
Version Uploaded Documentation Archive
1.0.0-dev+4 Sep 21, 2016 Go to the documentation of furlong 1.0.0-dev+4 Download furlong 1.0.0-dev+4 archive
1.0.0-dev+3 Sep 21, 2016 Go to the documentation of furlong 1.0.0-dev+3 Download furlong 1.0.0-dev+3 archive
1.0.0-dev+2 Sep 21, 2016 Go to the documentation of furlong 1.0.0-dev+2 Download furlong 1.0.0-dev+2 archive
1.0.0-dev+1 Sep 20, 2016 Go to the documentation of furlong 1.0.0-dev+1 Download furlong 1.0.0-dev+1 archive
1.0.0-dev Sep 18, 2016 Go to the documentation of furlong 1.0.0-dev Download furlong 1.0.0-dev archive
Popularity:
Describes how popular the package is relative to other packages. [more]
0
Health:
Code health derived from static analysis. [more]
98
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
6
Overall:
Weighted score of the above. [more]
30
Learn more about scoring.

We analyzed this package on Aug 16, 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 furlong depends on sqljocky >=0.1.3 which requires SDK version <2.0.0, version solving failed.

Fix platform conflicts.

Error(s) prevent platform classification:

Fix dependencies in pubspec.yaml.

Maintain CHANGELOG.md.

Changelog entries help clients to follow the progress in your code.

Add SDK constraint in pubspec.yaml.

For information about setting SDK constraint, please see https://www.dartlang.org/tools/pub/pubspec#sdk-constraints.

Package is getting outdated.

The package was released 99 weeks ago.

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.

Format lib/furlong.dart.

Run dartfmt to format lib/furlong.dart.

Format lib/src/furlong.dart.

Run dartfmt to format lib/src/furlong.dart.

Maintain an example.

None of the files in your example/ directory matches a known example patterns. Common file name patterns include: main.dart, example.dart or you could also use furlong.dart.

Fix additional 8 files with analysis or formatting issues.

Additional issues in the following files:

  • lib/src/migration.dart (Run dartfmt to format lib/src/migration.dart.)
  • lib/src/migrator.dart (Run dartfmt to format lib/src/migrator.dart.)
  • lib/src/mysql/date.dart (Run dartfmt to format lib/src/mysql/date.dart.)
  • lib/src/mysql/enumerator.dart (Run dartfmt to format lib/src/mysql/enumerator.dart.)
  • lib/src/mysql/int.dart (Run dartfmt to format lib/src/mysql/int.dart.)
  • lib/src/mysql/mysql_table_schema.dart (Run dartfmt to format lib/src/mysql/mysql_table_schema.dart.)
  • lib/src/mysql/string.dart (Run dartfmt to format lib/src/mysql/string.dart.)
  • lib/src/mysql/text.dart (Run dartfmt to format lib/src/mysql/text.dart.)