SQLStatementParser

Undocumented in source.
class SQLStatementParser : SQLParser {}

Constructors

this
this(string sql)
Undocumented in source.
this
this(string sql, string dbType)
Undocumented in source.
this
this(SQLExprParser exprParser)
Undocumented in source.
this
this(Lexer lexer, string dbType)
Undocumented in source.

Members

Functions

createSQLSelectParser
SQLSelectParser createSQLSelectParser()
Undocumented in source. Be warned that the author may not have intended to support it.
createUpdateStatement
SQLUpdateStatement createUpdateStatement()
Undocumented in source. Be warned that the author may not have intended to support it.
getExprParser
SQLExprParser getExprParser()
Undocumented in source. Be warned that the author may not have intended to support it.
getParseValuesSize
int getParseValuesSize()
Undocumented in source. Be warned that the author may not have intended to support it.
getSQLCreateTableParser
SQLCreateTableParser getSQLCreateTableParser()
Undocumented in source. Be warned that the author may not have intended to support it.
getSelectListCache
SQLSelectListCache getSelectListCache()
Undocumented in source. Be warned that the author may not have intended to support it.
isKeepComments
bool isKeepComments()
Undocumented in source. Be warned that the author may not have intended to support it.
isParseCompleteValues
bool isParseCompleteValues()
Undocumented in source. Be warned that the author may not have intended to support it.
parseAlter
SQLStatement parseAlter()
Undocumented in source. Be warned that the author may not have intended to support it.
parseAlterColumn
SQLAlterTableAlterColumn parseAlterColumn()
Undocumented in source. Be warned that the author may not have intended to support it.
parseAlterDrop
void parseAlterDrop(SQLAlterTableStatement stmt)
Undocumented in source. Be warned that the author may not have intended to support it.
parseAlterFunction
SQLStatement parseAlterFunction()
Undocumented in source. Be warned that the author may not have intended to support it.
parseAlterTableAddColumn
SQLAlterTableAddColumn parseAlterTableAddColumn()
Undocumented in source. Be warned that the author may not have intended to support it.
parseAlterTableAddIndex
SQLAlterTableAddIndex parseAlterTableAddIndex()
Undocumented in source. Be warned that the author may not have intended to support it.
parseAlterTableDropPartition
SQLAlterTableDropPartition parseAlterTableDropPartition(bool ifExists)
Undocumented in source. Be warned that the author may not have intended to support it.
parseAlterTableRename
SQLAlterTableItem parseAlterTableRename()
Undocumented in source. Be warned that the author may not have intended to support it.
parseAssignItems
void parseAssignItems(List!(SQLAssignItem) items, SQLObject parent)
Undocumented in source. Be warned that the author may not have intended to support it.
parseBlock
SQLStatement parseBlock()
Undocumented in source. Be warned that the author may not have intended to support it.
parseCall
SQLCallStatement parseCall()
Undocumented in source. Be warned that the author may not have intended to support it.
parseCase
SQLStatement parseCase()
Undocumented in source. Be warned that the author may not have intended to support it.
parseClose
SQLStatement parseClose()
Undocumented in source. Be warned that the author may not have intended to support it.
parseComment
SQLCommentStatement parseComment()
Undocumented in source. Be warned that the author may not have intended to support it.
parseCommit
SQLStatement parseCommit()
Undocumented in source. Be warned that the author may not have intended to support it.
parseCreate
SQLStatement parseCreate()
Undocumented in source. Be warned that the author may not have intended to support it.
parseCreateDatabase
SQLStatement parseCreateDatabase()
Undocumented in source. Be warned that the author may not have intended to support it.
parseCreateDbLink
SQLStatement parseCreateDbLink()
Undocumented in source. Be warned that the author may not have intended to support it.
parseCreateFunction
SQLCreateFunctionStatement parseCreateFunction()
Undocumented in source. Be warned that the author may not have intended to support it.
parseCreateIndex
SQLStatement parseCreateIndex(bool acceptCreate)
Undocumented in source. Be warned that the author may not have intended to support it.
parseCreateMaterializedView
SQLStatement parseCreateMaterializedView()
Undocumented in source. Be warned that the author may not have intended to support it.
parseCreatePackage
SQLStatement parseCreatePackage()
Undocumented in source. Be warned that the author may not have intended to support it.
parseCreateProcedure
SQLCreateProcedureStatement parseCreateProcedure()
Undocumented in source. Be warned that the author may not have intended to support it.
parseCreateSequence
SQLStatement parseCreateSequence(bool acceptCreate)
Undocumented in source. Be warned that the author may not have intended to support it.
parseCreateSynonym
SQLStatement parseCreateSynonym()
Undocumented in source. Be warned that the author may not have intended to support it.
parseCreateTable
SQLCreateTableStatement parseCreateTable()
Undocumented in source. Be warned that the author may not have intended to support it.
parseCreateTrigger
SQLStatement parseCreateTrigger()
Undocumented in source. Be warned that the author may not have intended to support it.
parseCreateType
SQLStatement parseCreateType()
Undocumented in source. Be warned that the author may not have intended to support it.
parseCreateUser
SQLStatement parseCreateUser()
Undocumented in source. Be warned that the author may not have intended to support it.
parseCreateView
SQLCreateViewStatement parseCreateView()
Undocumented in source. Be warned that the author may not have intended to support it.
parseDeclare
SQLStatement parseDeclare()
Undocumented in source. Be warned that the author may not have intended to support it.
parseDeleteStatement
SQLDeleteStatement parseDeleteStatement()
Undocumented in source. Be warned that the author may not have intended to support it.
parseDescribe
SQLStatement parseDescribe()
Undocumented in source. Be warned that the author may not have intended to support it.
parseDrop
SQLStatement parseDrop()
Undocumented in source. Be warned that the author may not have intended to support it.
parseDropDatabase
SQLDropDatabaseStatement parseDropDatabase(bool acceptDrop)
Undocumented in source. Be warned that the author may not have intended to support it.
parseDropEvent
SQLStatement parseDropEvent()
Undocumented in source. Be warned that the author may not have intended to support it.
parseDropFunction
SQLDropFunctionStatement parseDropFunction(bool acceptDrop)
Undocumented in source. Be warned that the author may not have intended to support it.
parseDropIndex
SQLStatement parseDropIndex()
Undocumented in source. Be warned that the author may not have intended to support it.
parseDropLogFileGroup
SQLStatement parseDropLogFileGroup()
Undocumented in source. Be warned that the author may not have intended to support it.
parseDropProcedure
SQLDropProcedureStatement parseDropProcedure(bool acceptDrop)
Undocumented in source. Be warned that the author may not have intended to support it.
parseDropSequence
SQLDropSequenceStatement parseDropSequence(bool acceptDrop)
Undocumented in source. Be warned that the author may not have intended to support it.
parseDropServer
SQLStatement parseDropServer()
Undocumented in source. Be warned that the author may not have intended to support it.
parseDropTable
SQLDropTableStatement parseDropTable(bool acceptDrop)
Undocumented in source. Be warned that the author may not have intended to support it.
parseDropTablespace
SQLDropTableSpaceStatement parseDropTablespace(bool acceptDrop)
Undocumented in source. Be warned that the author may not have intended to support it.
parseDropTrigger
SQLDropTriggerStatement parseDropTrigger(bool acceptDrop)
Undocumented in source. Be warned that the author may not have intended to support it.
parseDropUser
SQLDropUserStatement parseDropUser()
Undocumented in source. Be warned that the author may not have intended to support it.
parseDropView
SQLDropViewStatement parseDropView(bool acceptDrop)
Undocumented in source. Be warned that the author may not have intended to support it.
parseDump
SQLStatement parseDump()
Undocumented in source. Be warned that the author may not have intended to support it.
parseErrorLoggingClause
SQLErrorLoggingClause parseErrorLoggingClause()
Undocumented in source. Be warned that the author may not have intended to support it.
parseExplain
SQLExplainStatement parseExplain()
Undocumented in source. Be warned that the author may not have intended to support it.
parseFetch
SQLFetchStatement parseFetch()
Undocumented in source. Be warned that the author may not have intended to support it.
parseGrant
SQLGrantStatement parseGrant()
Undocumented in source. Be warned that the author may not have intended to support it.
parseHints
void parseHints(List!(SQLHint) hints)
Undocumented in source. Be warned that the author may not have intended to support it.
parseIf
SQLStatement parseIf()
Undocumented in source. Be warned that the author may not have intended to support it.
parseInsert
SQLStatement parseInsert()
Undocumented in source. Be warned that the author may not have intended to support it.
parseInsert0
void parseInsert0(SQLInsertInto insertStatement)
Undocumented in source. Be warned that the author may not have intended to support it.
parseInsert0
void parseInsert0(SQLInsertInto insertStatement, bool acceptSubQuery)
Undocumented in source. Be warned that the author may not have intended to support it.
parseInsert0_hinits
void parseInsert0_hinits(SQLInsertInto insertStatement)
Undocumented in source. Be warned that the author may not have intended to support it.
parseInsertColumns
void parseInsertColumns(SQLInsertInto insert)
Undocumented in source. Be warned that the author may not have intended to support it.
parseKill
SQLStatement parseKill()
Undocumented in source. Be warned that the author may not have intended to support it.
parseLeave
SQLStatement parseLeave()
Undocumented in source. Be warned that the author may not have intended to support it.
parseMerge
SQLStatement parseMerge()
Undocumented in source. Be warned that the author may not have intended to support it.
parseOpen
SQLOpenStatement parseOpen()

parse cursor open statement

parsePrivileages
void parsePrivileages(List!(SQLExpr) privileges, SQLObject parent)
Undocumented in source. Be warned that the author may not have intended to support it.
parseReleaseSavePoint
SQLStatement parseReleaseSavePoint()
Undocumented in source. Be warned that the author may not have intended to support it.
parseRename
SQLStatement parseRename()
Undocumented in source. Be warned that the author may not have intended to support it.
parseRepeat
SQLStatement parseRepeat()
Undocumented in source. Be warned that the author may not have intended to support it.
parseReturn
SQLStatement parseReturn()
Undocumented in source. Be warned that the author may not have intended to support it.
parseRevoke
SQLRevokeStatement parseRevoke()
Undocumented in source. Be warned that the author may not have intended to support it.
parseRollback
SQLRollbackStatement parseRollback()
Undocumented in source. Be warned that the author may not have intended to support it.
parseSavePoint
SQLStatement parseSavePoint()
Undocumented in source. Be warned that the author may not have intended to support it.
parseSelect
SQLStatement parseSelect()
Undocumented in source. Be warned that the author may not have intended to support it.
parseSet
SQLStatement parseSet()
Undocumented in source. Be warned that the author may not have intended to support it.
parseShow
SQLStatement parseShow()
Undocumented in source. Be warned that the author may not have intended to support it.
parseStatement
SQLStatement parseStatement()
Undocumented in source. Be warned that the author may not have intended to support it.
parseStatement
SQLStatement parseStatement(bool tryBest)

@param tryBest - 为true去解析并忽略之后的错误 强制建议除非明确知道可以忽略才传tryBest=true, 不然会忽略语法错误,且截断sql,导致update和delete无where条件下执行!!!

parseStatementList
List!(SQLStatement) parseStatementList()
Undocumented in source. Be warned that the author may not have intended to support it.
parseStatementList
List!(SQLStatement) parseStatementList(SQLObject parent)
Undocumented in source. Be warned that the author may not have intended to support it.
parseStatementList
void parseStatementList(List!(SQLStatement) statementList)
Undocumented in source. Be warned that the author may not have intended to support it.
parseStatementList
void parseStatementList(List!(SQLStatement) statementList, int max)
Undocumented in source. Be warned that the author may not have intended to support it.
parseStatementList
void parseStatementList(List!(SQLStatement) statementList, int max, SQLObject parent)
Undocumented in source. Be warned that the author may not have intended to support it.
parseStatementListDialect
bool parseStatementListDialect(List!(SQLStatement) statementList)
Undocumented in source. Be warned that the author may not have intended to support it.
parseTruncate
SQLStatement parseTruncate()
Undocumented in source. Be warned that the author may not have intended to support it.
parseUpdateSet
void parseUpdateSet(SQLUpdateStatement update)
Undocumented in source. Be warned that the author may not have intended to support it.
parseUpdateStatement
SQLUpdateStatement parseUpdateStatement()
Undocumented in source. Be warned that the author may not have intended to support it.
parseUpsert
SQLStatement parseUpsert()
Undocumented in source. Be warned that the author may not have intended to support it.
parseUse
SQLUseStatement parseUse()
Undocumented in source. Be warned that the author may not have intended to support it.
parseValueClause
void parseValueClause(List!(ValuesClause) valueClauseList, int columnSize, SQLObject parent)
Undocumented in source. Be warned that the author may not have intended to support it.
parseWhile
SQLStatement parseWhile()
Undocumented in source. Be warned that the author may not have intended to support it.
parseWith
SQLStatement parseWith()
Undocumented in source. Be warned that the author may not have intended to support it.
parseWithQuery
SQLWithSubqueryClause parseWithQuery()
Undocumented in source. Be warned that the author may not have intended to support it.
setKeepComments
void setKeepComments(bool keepComments)
Undocumented in source. Be warned that the author may not have intended to support it.
setParseCompleteValues
void setParseCompleteValues(bool parseCompleteValues)
Undocumented in source. Be warned that the author may not have intended to support it.
setParseValuesSize
void setParseValuesSize(int parseValuesSize)
Undocumented in source. Be warned that the author may not have intended to support it.
setSelectListCache
void setSelectListCache(SQLSelectListCache selectListCache)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

exprParser
SQLExprParser exprParser;
Undocumented in source.
insertColumnsCache
InsertColumnsCache insertColumnsCache;
Undocumented in source.
parseCompleteValues
bool parseCompleteValues;
Undocumented in source.
parseValuesSize
int parseValuesSize;
Undocumented in source.
selectListCache
SQLSelectListCache selectListCache;
Undocumented in source.

Inherited Members

From SQLParser

lexer
Lexer lexer;
Undocumented in source.
dbType
string dbType;
Undocumented in source.
getLexer
Lexer getLexer()
Undocumented in source. Be warned that the author may not have intended to support it.
getDbType
string getDbType()
Undocumented in source. Be warned that the author may not have intended to support it.
identifierEquals
bool identifierEquals(string text)
Undocumented in source. Be warned that the author may not have intended to support it.
acceptIdentifier
void acceptIdentifier(string text)
Undocumented in source. Be warned that the author may not have intended to support it.
tableAlias
string tableAlias()
Undocumented in source. Be warned that the author may not have intended to support it.
tableAlias
string tableAlias(bool must)
Undocumented in source. Be warned that the author may not have intended to support it.
as
string as()
Undocumented in source. Be warned that the author may not have intended to support it.
alias_f
string alias_f()
Undocumented in source. Be warned that the author may not have intended to support it.
printError
void printError(Token token)
Undocumented in source. Be warned that the author may not have intended to support it.
accept
void accept(Token token)
Undocumented in source. Be warned that the author may not have intended to support it.
acceptInteger
int acceptInteger()
Undocumented in source. Be warned that the author may not have intended to support it.
match
void match(Token token)
Undocumented in source. Be warned that the author may not have intended to support it.
setErrorEndPos
void setErrorEndPos(int errPos)
Undocumented in source. Be warned that the author may not have intended to support it.
config
void config(SQLParserFeature feature, bool state)
Undocumented in source. Be warned that the author may not have intended to support it.
isEnabled
bool isEnabled(SQLParserFeature feature)
Undocumented in source. Be warned that the author may not have intended to support it.
newCreateStatement
SQLCreateTableStatement newCreateStatement()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta