zema_hive 0.1.0
zema_hive: ^0.1.0 copied to clipboard
Zema schema validation integration for Hive. Type-safe local storage without TypeAdapters or code generation.
0.1.0 #
- Initial release.
withZema(schema)extension on HiveBox— wraps it in aZemaBox<T>.ZemaBox.put()andZemaBox.putAll()— validate before writing; throwZemaHiveExceptionon failure.ZemaBox.get()— validate on read; applymigratecallback automatically when validation fails.ZemaBox.valuesandZemaBox.toMap()— iterate all valid documents, silently skip invalid ones.ZemaHiveMigrationcallback — transform stored documents to match the current schema; migrated data is written back to Hive.OnHiveParseErrorcallback — graceful fallback when read validation fails.ZemaHiveExceptionwith key,List<ZemaIssue>, and raw data for debugging.