dox 2.0.1
dox: ^2.0.1 copied to clipboard
This is a cli tool to generate migration, model and to handle database migration with dox framework. It support up and down methods to control migration version.
Use this package as an executable
Install it
You can install the package from the command line:
dart pub global activate dox
Use it
The package has the following executables:
$ dox
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add dox
With Flutter:
$ flutter pub add dox
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
dox: ^2.0.1
Alternatively, your editor might support dart pub get
or flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:dox/dox.dart';