Skip to content

Latest commit

 

History

History
56 lines (30 loc) · 3.05 KB

File metadata and controls

56 lines (30 loc) · 3.05 KB
graph LR
    Command["Command"]
    Migration_Commands["Migration Commands"]
    Model_Generation_Command["Model Generation Command"]
    Seeding_Commands["Seeding Commands"]
    Migration_Commands -- "inherits from" --> Command
    Model_Generation_Command -- "inherits from" --> Command
    Seeding_Commands -- "inherits from" --> Command
Loading

CodeBoardingDemoContact

Details

The CLI Interface subsystem encompasses all command-line functionalities provided by Orator, primarily focusing on administrative tasks such as database migrations, model generation, and data seeding. Its core is built around a foundational Command abstraction, which specific command implementations extend.

Command

The abstract base class for all command-line interface operations. It defines the common interface, execution lifecycle, and provides utility methods for all concrete commands. This component is central as it establishes the architectural pattern for extending CLI functionality.

Related Classes/Methods:

Migration Commands

A specialized group of commands dedicated to managing the database schema. This includes operations like creating new migration files, running pending migrations, rolling back changes, resetting the database, and checking migration status. It's crucial for an ORM to manage schema evolution.

Related Classes/Methods:

Model Generation Command

A command responsible for automating the creation of new ORM model files. This streamlines the development process by providing a standardized way to scaffold data entities, aligning with the ActiveRecord pattern where models are central.

Related Classes/Methods:

Seeding Commands

A set of commands designed for populating database tables with initial or test data. This includes executing existing seeders and generating new seeder files, which is vital for development, testing, and initial application setup.

Related Classes/Methods: