UNPKG

rawsql-ts

Version:

[beta]High-performance SQL parser and AST analyzer written in TypeScript. Provides fast parsing and advanced transformation capabilities.

34 lines (33 loc) 1.13 kB
/** * Represents an edge (connection) in the SQL data flow diagram */ export interface DataFlowEdge { from: string; to: string; label?: string; } /** * Represents a connection between nodes in the data flow */ export declare class DataFlowConnection implements DataFlowEdge { from: string; to: string; label?: string | undefined; constructor(from: string, to: string, label?: string | undefined); getMermaidRepresentation(): string; static create(from: string, to: string, label?: string): DataFlowConnection; static createWithNullability(from: string, to: string, isNullable: boolean): DataFlowConnection; } /** * Collection of edges with utilities for managing connections */ export declare class DataFlowEdgeCollection { private edges; private connectionSet; add(edge: DataFlowConnection): void; addConnection(from: string, to: string, label?: string): void; addJoinConnection(from: string, to: string, isNullable: boolean): void; hasConnection(from: string, to: string): boolean; getAll(): DataFlowConnection[]; getMermaidRepresentation(): string; }