axor_generator 1.0.0 copy "axor_generator: ^1.0.0" to clipboard
axor_generator: ^1.0.0 copied to clipboard

Code generator for Axor NoSQL database that creates type-safe models, adapters, and query extensions at build time.

Changelog #

All notable changes to the Axor Generator package will be documented in this file.

1.0.0 - 2024-12-19 #

Added #

  • 🎉 Initial release of Axor Generator - Code generation for Axor database
  • 🏗️ Schema generation - Automatic schema classes from annotations
  • 🔧 Adapter generation - Optimized serialization/deserialization
  • 🎯 Query extensions - Type-safe query methods like .ageGreaterThan()
  • 📝 Model analysis - AST parsing and validation
  • 🛠️ Build integration - Seamless build_runner support

Code Generation Features #

  • Analyzes @collection annotated classes
  • Generates type-safe schema definitions
  • Creates optimized serialization adapters
  • Generates query extension methods for all fields
  • Validates schema compatibility and constraints
  • Produces compile-time error messages

Generated Code #

  • *Schema classes with full type information
  • *Adapter classes for JSON serialization
  • Query extensions: .fieldNameGreaterThan(), .fieldNameStartsWith(), etc.
  • Collection accessors with type safety
  • Validation and constraint checking

Build System #

  • Integration with build_runner
  • Configurable code generation options
  • Support for multiple collections per file
  • Incremental builds for fast development
  • Error reporting with source locations

Compatibility #

  • Works with Dart 3.0.0+
  • Supports all Axor field types and annotations
  • Compatible with Flutter's build system
  • Works across all platforms (iOS, Android, Web, Desktop)

Documentation #

  • Complete API documentation
  • Usage examples and guides
  • Integration instructions
  • Troubleshooting guide
0
likes
120
points
15
downloads

Publisher

verified publisherayushtimalsina.com.np

Weekly Downloads

Code generator for Axor NoSQL database that creates type-safe models, adapters, and query extensions at build time.

Repository (GitHub)
View/report issues

Documentation

Documentation
API reference

License

MIT (license)

Dependencies

analyzer, build, build_config, code_builder, collection, dart_style, meta, source_gen

More

Packages that depend on axor_generator