wandel 1.0.0 copy "wandel: ^1.0.0" to clipboard
wandel: ^1.0.0 copied to clipboard

outdatedDart 1 only

Wandel is a data migration library. Out of the box with mysql-connector based on sqljocky5.

wandel #

Installation #

Add it to your dependencies

dependencies:
  wandel: "^1.0.0"

and install the package

$ pub get

Usage #

Take a look into the example folder.

pub run example/basic/basic.dart

import 'package:wandel/wandel.dart';

import 'migrations/2018-01-18-task1.dart';
import 'migrations/2018-01-18-task2.dart';
import 'migrations/2018-01-18-task3.dart';

main() async {

    List<WandelMigration> migrations = [
        new MyWandelMigration1(),
        new MyWandelMigration2(),
        new MyWandelMigration3()
    ];

    Wandel wandel = new Wandel(
        migrations: migrations,
        connector: new WandelMySQLConnector(
            tableName       : '__migration',
            user            : 'username',
            password        : 'password',
            database        : 'databasename',
            host            : 'localhost',
            port            : 3306,
            maxConnections  : 5
        )
    );

    wandel.execute(mode: WANDEL_MODE.UP).then((List<WandelMigration> touchedList) {
        print(touchedList);
        print('finished');
    });
}

Contributing #

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Credits #

Robert Beyer 4sternrb@googlemail.com

License #

MIT

0
likes
0
pub points
0%
popularity

Publisher

unverified uploader

Wandel is a data migration library. Out of the box with mysql-connector based on sqljocky5.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

sqljocky5

More

Packages that depend on wandel