Microsoft SQL SELECT statement analyzer. Processes SELECT statements including CTEs, subqueries, JOINs, and various SQL clauses to extract database object dependencies and column information.
  • Constructor Details

    • MsSelect

      public MsSelect(String schema, MetaContainer meta)
      Creates a new Microsoft SQL SELECT analyzer with the specified schema and metadata.
      Parameters:
      schema - the current schema context
      meta - the metadata container for database schema information
  • Method Details

    • analyze

      public List<String> analyze(TSQLParser.Select_statementContext ruleCtx)
      Description copied from class: MsAbstractExprWithNmspc
      Analyzes the given rule context and returns a list of column names. Implementations should process the specific Microsoft SQL expression type and extract relevant database dependencies and column information.
      Specified by:
      analyze in class MsAbstractExprWithNmspc<TSQLParser.Select_statementContext>
      Parameters:
      ruleCtx - the parser rule context to analyze
      Returns:
      list of column names found during analysis
    • analyze

      Analyzes a SELECT statement without parentheses.
      Parameters:
      ruleCtx - the SELECT statement context to analyze
      Returns:
      list of column names found during analysis
    • analyze

      public List<String> analyze(MsSelectStmt select)
      Analyzes a Microsoft SQL SELECT statement wrapper.
      Parameters:
      select - the SELECT statement wrapper to analyze
      Returns:
      list of column names found during analysis