darudb_generator 1.1.0
darudb_generator: ^1.1.0 copied to clipboard
Generates the schema, the query builder and copyWith of a class annotated for DaruDB, with build_runner.
Changelog #
This package's history. It generates code for the
darudbpackage, whose changelog says what that code lets an application do.
1.1.0 - 2026-10-09 #
1.0.0 - 2026-10-05 #
Added #
- The builder
darudb, which writes for each class annotated@Collection()its schema constant, record codec, query builder, link type andcopyWith, and for each class annotated@Embedded()its schema constant, codec, query fields andcopyWith, into the library's.g.dartpart. It refuses a class it cannot store with an error that names the field: a field that is not final, a type the database does not store, a nullable field with a default, two primary keys, a collection without a key and withoutint? id, or an index inside an embedded object. - Runs on Dart 3.10 and later, with
analyzerfrom 12.1 andsource_genfrom 4.2.4, the newest of each that resolves on Dart 3.10.