cindel_generator 0.5.0 copy "cindel_generator: ^0.5.0" to clipboard
cindel_generator: ^0.5.0 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.5.0

dev_dependencies:
  build_runner: ^2.15.0
  cindel_generator: ^0.5.0

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
1
likes
0
points
190
downloads

Documentation

Documentation

Publisher

unverified uploader

Weekly Downloads

Source generator for Cindel schemas, serializers, typed collections, and query builders.

Repository (GitHub)
View/report issues

Topics

#database #nosql #codegen #build-runner #source-gen

License

unknown (license)

Dependencies

analyzer, build, cindel_annotations, source_gen

More

Packages that depend on cindel_generator