cindel_annotations 0.2.0 copy "cindel_annotations: ^0.2.0" to clipboard
cindel_annotations: ^0.2.0 copied to clipboard

Public annotations and schema metadata types for the Cindel NoSQL local database.

example/README.md

Cindel annotations example #

Define your persistent models with annotations from cindel_annotations, then generate the Cindel schema and typed accessors with cindel_generator.

import 'package:cindel_annotations/cindel_annotations.dart';

part 'todo.g.dart';

@Collection(name: 'todos')
class Todo {
  Id id = autoIncrement;

  @index
  late String title;

  @Index(type: CindelIndexType.value)
  late bool completed;
}

Run the generator from the package that owns the model:

dart run build_runner build --delete-conflicting-outputs
1
likes
0
points
184
downloads

Documentation

Documentation

Publisher

unverified uploader

Weekly Downloads

Public annotations and schema metadata types for the Cindel NoSQL local database.

Repository (GitHub)
View/report issues

Topics

#database #nosql #annotations #schema

License

unknown (license)

More

Packages that depend on cindel_annotations