declarative_sqlite_generator 1.4.0
declarative_sqlite_generator: ^1.4.0 copied to clipboard
A build generator that generates data classes for interacting with table rows and view rows from declarative_sqlite schemas.
1.4.0 #
π Major Updates #
- Updated to use declarative_sqlite ^1.4.0
- Enhanced Reactive Compatibility: Generated code now fully supports reactive synchronization features
- Improved Exception Handling: Generated code works seamlessly with new comprehensive database exception types
- Stream-Ready Generated Classes: All generated record classes are compatible with reactive dirty row streams
π― Code Generation Improvements #
- Generated getters and setters work perfectly with reactive change detection
- Enhanced type safety with new exception handling capabilities
- Maintained full backward compatibility with existing generated code
π οΈ Technical Enhancements #
- Code generation now leverages improved schema analysis from core library
- Generated code benefits from enhanced constraint violation handling
- Better integration with real-time synchronization patterns
1.3.0 #
Updates #
- Updated to use declarative_sqlite ^1.3.0
- Enhanced compatibility with new constraint violation handling features
- Generated code now works seamlessly with improved bulkLoad constraint handling
1.2.0 #
Updates #
- Updated to use declarative_sqlite ^1.2.0
- Enhanced compatibility with unified save() method
- Generated code now works seamlessly with the new unified save() approach
1.1.0 #
Features #
- LWW-Only Setter Generation: Enhanced code generation to only create setters for LWW (Last-Write-Wins) columns
- Provides compile-time safety against accidentally updating non-LWW columns on server-origin rows
- Non-LWW columns get read-only getters with helpful documentation comments
- Generated setters automatically use the appropriate typed setter methods (
setText,setInteger, etc.)
- Enhanced Documentation: Generated code includes helpful comments explaining why certain columns don't have setters
Code Generation Improvements #
- Improved column analysis to distinguish between LWW and non-LWW columns
- Enhanced generated code documentation for better developer experience
- Updated to work with declarative_sqlite ^1.1.0 non-LWW column protection features
1.0.1 #
Updates #
- Updated to use declarative_sqlite ^1.0.1
- Added missing dependencies (glob, logging, path) for proper pub.flutter-io.cn publication
- Updated documentation to remove build.yaml requirement
1.0.0 #
Features #
@GenerateDbRecordannotation for generating typed record classes@DbSchema()annotation for marking schema definition functions- Automatic discovery of schema functions (no build.yaml required)
- Code generation for typed getters and setters
- Build system integration with
build_runner
Code Generation #
- Generates
.db.dartpart files with typed accessors - Type-safe database record operations
- Automatic schema analysis and code generation
Documentation #
- Complete setup guide without build.yaml configuration
- Usage examples with proper annotations
- Integration with DeclarativeSQLite core package