Interface ISqlCmds

All Known Implementing Classes:
AbstractSqlCmds, TSqlCmdsAdapter, TSqlCmdsAthena, TSqlCmdsBigquery, TSqlCmdsCouchbase, TSqlCmdsDatabricks, TSqlCmdsDb2, TSqlCmdsGaussdb, TSqlCmdsGreenplum, TSqlCmdsHana, TSqlCmdsHive, TSqlCmdsInformix, TSqlCmdsMdx, TSqlCmdsMssql, TSqlCmdsMysql, TSqlCmdsNetezza, TSqlCmdsOdbc, TSqlCmdsOpenedge, TSqlCmdsOracle, TSqlCmdsPostgresql, TSqlCmdsPresto, TSqlCmdsRedshift, TSqlCmdsSnowflake, TSqlCmdsSoql, TSqlCmdsSparksql, TSqlCmdsSybase, TSqlCmdsTeradata, TSqlCmdsTrino, TSqlCmdsVertica

public interface ISqlCmds
Interface for vendor-specific SQL command resolution. Provides methods for identifying SQL statement types and resolving commands used by both the main parser and vendor-specific yacc parsers.
Since:
3.1.0.9
  • Method Details

    • issql

      Identifies the SQL statement type from a token stream. This method is called repeatedly during parsing to identify statement boundaries and types in complex SQL scripts.
      Parameters:
      token - Current token being analyzed
      state - Current parsing state (start, in body, or in exception)
      currentStatement - Current statement being built (may be modified)
      Returns:
      The identified or modified SQL statement
    • getStatementTypeForToken

      Finds SQL command type for yacc parser integration. Used by vendor-specific yacc parsers to identify statement types.
      Parameters:
      token - Token to analyze
      Returns:
      SQL statement type, or sstunknown if not recognized
    • getVendor

      Gets the vendor this command resolver handles.
      Returns:
      Database vendor
    • getSqlCmdList

      Gets the command list for this vendor (for compatibility and debugging).
      Returns:
      Command list containing all recognized commands