Skip to content
# Class: QueryFlowDiagramGenerator

Defined in: packages/core/src/transformers/QueryFlowDiagramGenerator.ts:29

QueryFlowDiagramGenerator using model-based architecture Generates Mermaid diagrams from SQL queries following consistent principles

Constructors ​

Constructor ​

new QueryFlowDiagramGenerator(): QueryFlowDiagramGenerator

Defined in: packages/core/src/transformers/QueryFlowDiagramGenerator.ts:36

Returns ​

QueryFlowDiagramGenerator

Methods ​

generateMermaidFlow() ​

generateMermaidFlow(query, options?): string

Defined in: packages/core/src/transformers/QueryFlowDiagramGenerator.ts:44

Parameters ​

query ​

string | SelectQuery

options? ​

FlowDiagramOptions

Returns ​

string


generate() ​

static generate(sql): string

Defined in: packages/core/src/transformers/QueryFlowDiagramGenerator.ts:69

Parameters ​

sql ​

string

Returns ​

string

Released under the MIT License.