ts-visio - v1.16.27
    Preparing search index...

    Class SchemaDiagram

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Connects two tables with a specific relationship type.

      Parameters

      • fromTable: Shape

        Source table shape

      • toTable: Shape

        Target table shape

      • type: RelationType

        Relationship type ('1:1' or '1:N')

      Returns Promise<void>

    • Adds a table entity to the diagram.

      Parameters

      • tableName: string

        Name of the table

      • columns: string[]

        List of column names (e.g., "id: int")

      • x: number = 0

        X coordinate

      • y: number = 0

        Y coordinate

      Returns Promise<Shape>