Polyglot SQL API Documentation - v0.2.0
    Preparing search index...

    Function getSourceTables

    • Get all source tables that feed into a column.

      Parameters

      • column: string

        Column name to trace

      • sql: string

        SQL string to analyze

      • dialect: string = 'generic'

        Dialect for parsing (default: 'generic')

      Returns SourceTablesResult

      const result = getSourceTables("a", "SELECT t.a FROM t JOIN s ON t.id = s.id");
      // result.tables === ["t"]