These are private API methods. These are not intended for regular usage. It is not guaranteed that changes in functionality will be correctly reflected by changes in the module version numbers.
This documentation is primarily provided for developers interested in contributing to SQL Surveyor.
Retrieves the parser that will be used to identify tokens in the SQL string being autocompleted.
Retrieves the listener that will be used to populate the ParsedSql object.
Retrieves the subquery located at the zero-based index within the query, if it exists.
Retrieves the common table expression located at the zero-based index within the query, if it exists.
From the provided queries, retrieves the zero-based index of the query key, located at the zero-based index.
Adds an alias to an existing referenced table on the query.
Adds the ParsedQuery to the array of common table expressions on this query.
Adds a new output column to the ParsedQuery.
If the referenced column does not exist, adds a new ReferencedColumn to this query. If the referenced column already exists, adds the location to it.
Adds the ParsedQuery to the array of subqueries on this query.
If the referenced table does not exist, adds a new ReferencedTable to this query. If the referenced table already exists, adds the location to it.
Creates a token instance and adds the token to the array of tokens on this query.
Aliases can be added to the ParsedQuery before the table itself. This method merges the aliases into the appropriate ReferencedTable.
Set the common table expression names for any CTEs. Must be called after tokens have been added to the CTEs.
Adds the ParsedQuery to the array of queries on this object.
The main entry point for the class. Identifies the token type that matches a provided typeId
for the given SQL dialect and parser.
Determines the token type based on heuristics for the T-SQL tokens.
Determines the token type based on heuristics for the PL/SQL tokens.
Determines the token type based on heuristics for the PL/pgSQL tokens.
Determines the token type based on heuristics for the MySQL tokens.