darudb_generator 1.1.0 copy "darudb_generator: ^1.1.0" to clipboard
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 darudb package, whose changelog says what that code lets an application do.

1.1.0 - 2026-10-09 #

Added #

  • An example, example/README.md, of a class the generator reads and the code an application writes with what it generates.

Changed #

  • Versioned 1.1.0 together with darudb 1.1.0. The code it generates is the same as 1.0.0's, and works with darudb 1.0 and 1.1 alike.

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 and copyWith, and for each class annotated @Embedded() its schema constant, codec, query fields and copyWith, into the library's .g.dart part. 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 without int? id, or an index inside an embedded object.
  • Runs on Dart 3.10 and later, with analyzer from 12.1 and source_gen from 4.2.4, the newest of each that resolves on Dart 3.10.
1
likes
160
points
312
downloads

Documentation

API reference

Publisher

verified publishercdget.com

Weekly Downloads

Generates the schema, the query builder and copyWith of a class annotated for DaruDB, with build_runner.

Homepage
Repository (GitHub)
View/report issues
Contributing

License

MIT (license)

Dependencies

analyzer, build, source_gen

More

Packages that depend on darudb_generator