easy_orm_cli 0.4.0 easy_orm_cli: ^0.4.0 copied to clipboard
The CLI used to generate ORM code for easy_orm.
Use this package as an executable
Install it
You can install the package from the command line:
dart pub global activate easy_orm_cli
Use it
The package has the following executables:
$ easy_orm_cli
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add easy_orm_cli
With Flutter:
$ flutter pub add easy_orm_cli
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
easy_orm_cli: ^0.4.0
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:easy_orm_cli/generator.dart';
import 'package:easy_orm_cli/helpers/Column.dart';
import 'package:easy_orm_cli/helpers/Table.dart';
import 'package:easy_orm_cli/helpers/checkFolderStructure.dart';
import 'package:easy_orm_cli/helpers/convertRawTablesToTables.dart';
import 'package:easy_orm_cli/helpers/convertTablesToDbMap.dart';
import 'package:easy_orm_cli/helpers/convertTablesToTemplateMap.dart';
import 'package:easy_orm_cli/helpers/excludeColumns.dart';
import 'package:easy_orm_cli/helpers/excludeTables.dart';
import 'package:easy_orm_cli/helpers/excludeUnsupportedColumns.dart';
import 'package:easy_orm_cli/helpers/filterTables.dart';
import 'package:easy_orm_cli/helpers/getTablesRawFromDb.dart';
import 'package:easy_orm_cli/helpers/lookupDbType.dart';
import 'package:easy_orm_cli/helpers/processExcludeListYaml.dart';
import 'package:easy_orm_cli/templates/column_subTemplate.dart';
import 'package:easy_orm_cli/templates/db_importStatement_template.dart';
import 'package:easy_orm_cli/templates/db_tableName_template.dart';
import 'package:easy_orm_cli/templates/db_template.dart';
import 'package:easy_orm_cli/templates/definition_template.dart';
import 'package:easy_orm_cli/templates/modelParameters_subTemplate.dart';
import 'package:easy_orm_cli/templates/model_template.dart';
import 'package:easy_orm_cli/templates/propertySet_subTemplate.dart';
import 'package:easy_orm_cli/templates/service_template.dart';
import 'package:easy_orm_cli/util/command_line_tools.dart';
import 'package:easy_orm_cli/util/dePluralise.dart';
import 'package:easy_orm_cli/util/internal_error.dart';
import 'package:easy_orm_cli/util/linqH.dart';
import 'package:easy_orm_cli/util/print.dart';
import 'package:easy_orm_cli/util/version.dart';
import 'package:easy_orm_cli/util/windows.dart';