index()

public function index(): void

Description

The main entry point for Trongate Control. Scans the current module directory for SQL files and presents them to the user with options to preview, run, or delete. If no SQL files are found, redirects to the calling module's normal flow.

Only operates in development mode (ENV === 'dev'). In production, this method is automatically disabled.

Parameters

This method takes no parameters.

Return Value

TypeDescription
voidOutputs the SQL management interface or redirects on completion.