Preconditions and Schema Registration added
I'm stoked to announce that Genesis DB just got a major upgrade! I've added preconditions and schema registration with built-in validation - powerful features that enhance data integrity and streamline your development workflow.

What's New?

Preconditions

Preconditions are smart guards that enforce business rules before data gets committed to your database. Currently, Genesis DB includes a powerful precondition that checks whether a subject being committed already has existing events or if it's a new subject.

  • Data Consistency: Prevent conflicts between new and existing subjects
  • Error Prevention: Catch issues early and prevent data corruption

Schema Registration

Schema registration provides robust data validation capabilities. Define your data structure once, and Genesis DB automatically validates all incoming data against your registered schemas.

  • Data Validation: Automatically validate data against defined schemas
  • Type Safety: Ensure data types match your expectations
  • Structure Enforcement: Guarantee data structure consistency
  • Error Prevention: Catch invalid data before it reaches your database

Why This Matters

Data Integrity

With schema validation and preconditions, your data is protected from the moment it enters your system. Ensure only valid, properly structured data reaches your database.

Business Logic Enforcement

Preconditions enforce critical business rules like checking subject event states, ensuring your application logic is consistently applied.

Developer Experience

Spend less time writing validation code and more time building features. The database handles validation automatically based on your defined schemas and rules.

Error Prevention

Catch data issues early with automatic validation. Prevent runtime errors and data corruption before they can cause problems.

Getting Started

Ready to level up your database game? These features are now available in the latest version of Genesis DB (0.0.6). Check out our documentation for detailed examples and implementation guides.

Stay tuned for more updates - It has just getting started!