axor_generator 1.0.0
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
@collectionannotated 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 #
*Schemaclasses with full type information*Adapterclasses 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