Class MsCreateProcedure


public final class MsCreateProcedure extends MsBatchContextProcessor
Parser for Microsoft SQL CREATE PROCEDURE statements. Handles both regular T-SQL procedures and CLR procedures with support for arguments, procedure options, and proper analysis setup.
  • Constructor Details

    • MsCreateProcedure

      public MsCreateProcedure(TSQLParser.Batch_statementContext ctx, MsDatabase db, boolean ansiNulls, boolean quotedIdentifier, org.antlr.v4.runtime.CommonTokenStream stream, ISettings settings)
      Creates a parser for Microsoft SQL CREATE PROCEDURE statements.
      Parameters:
      ctx - the batch statement context containing the procedure definition
      db - the Microsoft SQL database schema being processed
      ansiNulls - the ANSI_NULLS setting for the procedure
      quotedIdentifier - the QUOTED_IDENTIFIER setting for the procedure
      stream - the token stream for source code processing
      settings - parsing configuration settings
  • Method Details

    • parseObject

      public void parseObject()
      Description copied from class: ParserAbstract
      Parses a database object from the current context. Must be implemented by concrete subclasses to handle specific object types.
      Specified by:
      parseObject in class ParserAbstract<MsDatabase>
    • getObject

      public MsAbstractCommonFunction getObject(MsSchema schema, boolean isJdbc)
      Creates and configures the procedure object from the parse context. Handles both CLR external procedures and regular T-SQL procedures with appropriate analysis setup.
      Parameters:
      schema - the schema to add the procedure to
      isJdbc - whether this is being parsed in JDBC mode
      Returns:
      the created procedure object