jao_generator 0.2.1 copy "jao_generator: ^0.2.1" to clipboard
jao_generator: ^0.2.1 copied to clipboard

Code generator for jao ORM. Generates typed field accessors and model metadata.

0.2.1 - 2026-01-01 #

Added #

  • Generates _registerMetadata() method in companion class for model metadata registration
  • Extracts ForeignKey/OneToOneField relationship info for proper JOIN support
  • Auto-registers ModelMetadata with ModelRegistry on first Manager access

0.2.0 - 2025-12-31 #

Changed #

  • fromRow() generation now uses type converter functions (dbDateTime, dbBool, dbInt, dbDouble, dbDuration) instead of direct type casts
  • This enables cross-database compatibility where SQLite returns String/int and PostgreSQL returns native DateTime/bool types

Fixed #

  • Cross-database type compatibility issue (#4)

0.1.0 - 2025-12-28 #

  • Version bump to align with jao and jao_cli packages

0.0.1 - 2025-12-28 #

Added #

  • Initial release
  • Code generation for JAO models
  • Typed field accessors ($ companion class)
  • fromRow factory for database row mapping
  • toRow method for serialization
  • Schema generation for migrations
  • Support for all JAO field types
  • Integration with build_runner
0
likes
140
points
228
downloads

Publisher

unverified uploader

Weekly Downloads

Code generator for jao ORM. Generates typed field accessors and model metadata.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

analyzer, build, jao, source_gen

More

Packages that depend on jao_generator