cindel_generator 0.2.4
cindel_generator: ^0.2.4 copied to clipboard
Source generator for Cindel schemas, serializers, typed collections, and query builders.
example/README.md
Cindel generator example #
Use cindel_generator with build_runner in the package that contains your
annotated Cindel models.
dependencies:
cindel_annotations: ^0.2.1
dev_dependencies:
build_runner: ^2.15.0
cindel_generator: ^0.2.4
Given an annotated model:
import 'package:cindel_annotations/cindel_annotations.dart';
part 'user.g.dart';
@Collection(name: 'users')
class User {
Id id = autoIncrement;
@index
late String email;
late String name;
}
Generate the schema and typed collection APIs:
dart run build_runner build --delete-conflicting-outputs