bloom_db_generator 0.1.2
bloom_db_generator: ^0.1.2 copied to clipboard
build_runner code generator for bloom_db models — generates ModelMeta and row-mapping boilerplate from @BloomModel annotations.
Changelog #
0.1.2 - 2026-09-04 #
Changed #
- Loud
fromRownull handling (#15): generatedfromRowfor a non-nullable field now throws aStateErroron a null value instead of silently substituting0/''/ epoch, so wrong data surfaces instead of being masked. - Uninferrable field kinds error instead of defaulting to text (#15): a Dart type with no standard
FieldKindmapping (e.g.List<String>, enums,Uint8List) now throws anUnsupportedErrorasking for an explicit@Field(kind: ...)rather than silently emittingFieldKind.text.
Fixed #
- Preserve
@BloomFieldschema metadata (#11): generatedFieldMetanow carriesmaxLengthanddefaultVal, allowing migration DDL to emit the requestedVARCHAR(n)andDEFAULTdefinitions instead of silently falling back.
0.1.1 - 2026-08-31 #
- Preserve explicit
@BloomFieldfalse values and custom field metadata.
0.1.0 #
Initial release.
@BloomModel-drivenbuild_runnerbuilder generatingModelMeta,fieldValues(), and row-mapping boilerplate forbloom_dbmodels.