basalt_codegen 0.1.0 copy "basalt_codegen: ^0.1.0" to clipboard
basalt_codegen: ^0.1.0 copied to clipboard

build_runner code generator for the Basalt Dart ORM — derives row readers and INSERT/UPDATE builders from @Queryable, @Insertable, and @AsChangeset.

Changelog #

0.1.0 #

  • Table-marker resolution supports the new schema shape where the annotation value's type is a non-generic TableRef subclass (@Queryable(Users.table) with final class Users extends TableRef<Users>) — the marker is resolved from the TableRef<Tbl> supertype. Plain TableRef<X> values keep working.
  • Widened the analyzer constraint to >=8.0.0 <15.0.0.
  • Requires basalt >=0.1.0 <0.2.0.

0.0.2 #

  • @Insertable now also generates a batch extension on Iterable of the annotated class: rows.toInsert() builds one multi-row INSERT ... VALUES (...), (...) (throws ArgumentError on an empty iterable). Skips readOnly columns like the single-row form.
  • Requires basalt >=0.0.2 <0.1.0.

0.0.1 #

Initial development release of the basalt_dart build_runner code generator.

  • @Queryable — generates a RowReader-based mapper and typed query getters.
  • @Insertable — generates a toInsert() builder.
  • @AsChangeset — generates a toChangeset() builder for UPDATE.
  • @Relation — generates self-mapping join queries (has-many folds, ref joins).
  • Pure, unit-tested emitters bridged by thin GeneratorForAnnotation classes, registered in a single SharedPartBuilder.
0
likes
160
points
39
downloads

Documentation

Documentation
API reference

Publisher

unverified uploader

Weekly Downloads

build_runner code generator for the Basalt Dart ORM — derives row readers and INSERT/UPDATE builders from @Queryable, @Insertable, and @AsChangeset.

Repository (GitHub)
View/report issues
Contributing

Topics

#orm #code-generation #build-runner #database

License

MIT (license)

Dependencies

analyzer, basalt, build, source_gen

More

Packages that depend on basalt_codegen