easy_orm_cli 0.3.0 copy "easy_orm_cli: ^0.3.0" to clipboard
easy_orm_cli: ^0.3.0 copied to clipboard

outdated

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

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.3.0

Alternatively, your editor might support dart 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/getTablesRawFromDb.dart';
import 'package:easy_orm_cli/helpers/lookupDbType.dart';
import 'package:easy_orm_cli/helpers/tablesToTemplateMap.dart';
import 'package:easy_orm_cli/templates/column_subTemplate.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';