Skip to Content
🎉 New release with new features and improvements! V0.0.2 Release →

Derived Entities

Derived Entities are a planned feature and are not yet implemented in the Bsh Engine.

Derived Entities will enable you to define entities whose data is generated, combined, or calculated from other entities; rather than being directly retrieved from a single database table or view.

These entities provide a dynamic and flexible abstraction in your application. While they behave and are queried like regular entities, derived entities are backed by logic that can aggregate, transform, or join data from multiple sources as needed. This means you can represent business logic, computations, or custom views of your data layer without altering your database schema.

Key Benefits

  • Custom Data Models: Easily represent aggregated or computed data as standalone entities.
  • Business Logic: Keep derivations outside of your database schema.
  • Seamless Migration: Move between environments without making any direct changes to your database.
  • Flexibility: Change data derivation or presentation without the need to touch your database.
  • Reusability: Use derived entities for querying, validation, and output, just like core entities.

More documentation, usage patterns, and configuration examples will be provided as development progresses. Stay tuned for updates!