phorm_generator 1.2.0 copy "phorm_generator: ^1.2.0" to clipboard
phorm_generator: ^1.2.0 copied to clipboard

Code generator for PHORM that turns @Schema-annotated Dart models into SQL table schemas, migrations, JSON mappers and runtime metadata for SQLite, PostgreSQL and MySQL.

example/main.dart

// Examples print to the console for illustration only.
// ignore_for_file: avoid_print

import 'package:phorm_generator/phorm_generator.dart';

// `phorm_generator` is a build-time code generator. You normally don't call it
// directly: add it to `dev_dependencies`, annotate your models with `@Schema`
// from `phorm_annotations`, and run `dart run build_runner build`.
//
// This example just shows that the generator entry points are available.
void main() {
  final generator = PhormSchemaGenerator();
  print('Schema generator ready: ${generator.runtimeType}');
}
1
likes
150
points
427
downloads
screenshot

Documentation

API reference

Publisher

verified publisherinterlib.dev

Weekly Downloads

Code generator for PHORM that turns @Schema-annotated Dart models into SQL table schemas, migrations, JSON mappers and runtime metadata for SQLite, PostgreSQL and MySQL.

Homepage
Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

analyzer, build, dart_style, path, phorm_annotations, source_gen

More

Packages that depend on phorm_generator