Step 2: Database Integration

This step adds SQLAlchemy ORM integration for persistent data storage.

Overview

Learn how to integrate LumiX with SQLAlchemy for type-safe database operations.

For detailed documentation, see the README in the tutorial directory.

Key Topics

  • SQLAlchemy declarative models

  • Loading LumiX models with from_model()

  • Bill of Materials (BOM) structure

  • Solution persistence

  • Cached helper functions

Quick Start

cd tutorials/production_planning/step2_database_integration
python sample_data.py
python production_db.py

See Also