declarative_sqlite_generator 1.4.0 copy "declarative_sqlite_generator: ^1.4.0" to clipboard
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.1 #

Bug Fixes #

  • Fixed the getHlc issue in generated code

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.2 #

Updates #

  • Updated to use declarative_sqlite ^1.0.2
  • Aligned with foreign key removal changes

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 #

  • @GenerateDbRecord annotation 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.dart part 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
2
likes
40
points
19
downloads

Publisher

verified publisherlinden.no

Weekly Downloads

A build generator that generates data classes for interacting with table rows and view rows from declarative_sqlite schemas.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

analyzer, build, build_config, code_builder, dart_style, declarative_sqlite, glob, logging, path, source_gen

More

Packages that depend on declarative_sqlite_generator