Package gudusoft.gsqlparser.sqlcmds
Class TSqlCmdsAdapter
Object
gudusoft.gsqlparser.sqlcmds.TSqlCmdsAdapter
- All Implemented Interfaces:
ISqlCmds
Adapter class that wraps the monolithic TSqlCmds for gradual migration.
This allows us to migrate vendors one at a time while maintaining compatibility.
- Since:
- 3.1.0.9
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionInternal helper for Sybase to find command type.Gets the command list for this vendor (for compatibility and debugging).Finds SQL command type for yacc parser integration.Gets the vendor this command resolver handles.issql(TSourceToken token, EFindSqlStateType state, TCustomSqlStatement currentStatement) Identifies the SQL statement type from a token stream.
-
Constructor Details
-
TSqlCmdsAdapter
-
-
Method Details
-
issql
public TCustomSqlStatement issql(TSourceToken token, EFindSqlStateType state, TCustomSqlStatement currentStatement) Description copied from interface:ISqlCmdsIdentifies 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. -
getStatementTypeForToken
Description copied from interface:ISqlCmdsFinds SQL command type for yacc parser integration. Used by vendor-specific yacc parsers to identify statement types.- Specified by:
getStatementTypeForTokenin interfaceISqlCmds- Parameters:
token- Token to analyze- Returns:
- SQL statement type, or sstunknown if not recognized
-
getVendor
Description copied from interface:ISqlCmdsGets the vendor this command resolver handles. -
getSqlCmdList
Description copied from interface:ISqlCmdsGets the command list for this vendor (for compatibility and debugging).- Specified by:
getSqlCmdListin interfaceISqlCmds- Returns:
- Command list containing all recognized commands
-
findSybaseCmdInternal
Internal helper for Sybase to find command type. Called by TSqlCmdsSybase.findCmdUsedByYacc() until Sybase is fully migrated.
-