Skip to main content

Crate sketchddd

Crate sketchddd 

Source
Expand description

§SketchDDD

A Categorical Framework for Domain-Driven Design.

SketchDDD bridges the gap between domain experts and developers by providing precise mathematical definitions for DDD concepts using category theory.

§Quick Start

use sketchddd::prelude::*;

// Create a bounded context
let mut ctx = BoundedContext::new("Commerce");

// Add entities
let customer = ctx.add_entity("Customer");
let order = ctx.add_entity("Order");

// Add value objects
let money = ctx.add_value_object("Money");

// Add enumerations
let status = ctx.add_enum("OrderStatus", vec![
    "Pending".into(),
    "Confirmed".into(),
    "Shipped".into(),
]);

§Crate Features

This crate re-exports functionality from:

Re-exports§

pub use sketchddd_core as core;
pub use sketchddd_parser as parser;
pub use sketchddd_codegen as codegen;
pub use sketchddd_viz as viz;

Modules§

prelude
Prelude module for convenient imports.