The journey continues. Genesis DB - just got a serious upgrade.
New to Genesis DB? Catch up on how Genesis DB started and why it exists in this post.
What’s New in 0.0.6?
Say hello to Preconditions and Schema Registration - powerful new features designed to enforce data integrity, guard against invalid inputs, and streamline your development flow.
Preconditions: Smarter Commits, Built In
Preconditions act as gatekeepers that validate business logic before data gets written. The first available precondition (isSubjectNew
) checks whether a subject already has events or if it's brand new.
Why it matters:
- Avoid conflicts: Prevent accidental overwrites or duplicate inits
- Enforce rules: Business logic enforced at the database layer
- Fail fast: Catch invalid state transitions before they become problems
Schema Registration: Built-In Validation
You can now register data schemas in Genesis DB. Once defined, every incoming event is automatically validated against its schema. No more surprises.
What it gives you:
- Type safety: Ensure your event data matches the expected structure
- Data consistency: Keep your event stream clean and predictable
- Less boilerplate: No need to write custom validators - it's automatic
- Confidence in your data: Invalid payloads are rejected before they hit storage
Why This Update Matters
Genesis DB now does more than store events - it helps protect your system from the inside out. With preconditions and schema validation, your data pipeline becomes more resilient, reliable, and developer-friendly.
Try It Now
These features are available starting in Genesis DB 0.0.6. Define your schemas. Enable your rules. Build with confidence.
Docs, examples, and more: genesisdb.io
And it just getting started.