TSqlParser 類別

定義

TSql 解析器的抽象基底類別。

[System.Serializable]
public abstract class TSqlParser
[<System.Serializable>]
type TSqlParser = class
Public MustInherit Class TSqlParser
繼承
TSqlParser
衍生
屬性

屬性

名稱 Description
QuotedIdentifier

顯示解析器是否啟用了引用識別碼。

方法

名稱 Description
Create(SqlVersion, Boolean)

為指定版本建立 TSqlParser 。

GetTokenStream(TextReader, IList<ParseError>, Int32, Int32, Int32)

將輸入解析成 Token Stream。

GetTokenStream(TextReader, IList<ParseError>)

將輸入解析成 Token Stream。

Parse(IList<TSqlParserToken>, IList<ParseError>)

將指定的標記解析成 TSqlFragment。

Parse(TextReader, IList<ParseError>, Int32, Int32, Int32)

阻擋解析法。

Parse(TextReader, IList<ParseError>)

阻擋解析法。

ParseBooleanExpression(TextReader, IList<ParseError>, Int32, Int32, Int32)

解析輸入字串以獲得布林運算式。 如果有任何錯誤,會回傳 null。

ParseBooleanExpression(TextReader, IList<ParseError>)

解析輸入字串以獲得布林運算式。 如果有任何錯誤,會回傳 null。

ParseChildObjectName(TextReader, IList<ParseError>, Int32, Int32, Int32)

解析輸入字串以取得 ChildObjectName。 如果有任何錯誤,會回傳 null。

ParseChildObjectName(TextReader, IList<ParseError>)

解析輸入字串以取得 ChildObjectName。 如果有任何錯誤,會回傳 null。

ParseConstantOrIdentifier(TextReader, IList<ParseError>, Int32, Int32, Int32)

解析輸入字串以獲得常數或識別碼。 如果有任何錯誤,會回傳 null。

ParseConstantOrIdentifier(TextReader, IList<ParseError>)

解析輸入字串以獲得常數或識別碼。 如果有任何錯誤,會回傳 null。

ParseConstantOrIdentifierWithDefault(TextReader, IList<ParseError>, Int32, Int32, Int32)

解析輸入字串以取得常數、識別碼或預設字面值(值為「DEFAULT」)。 如果有任何錯誤,會回傳 null。

ParseConstantOrIdentifierWithDefault(TextReader, IList<ParseError>)

解析輸入字串以取得常數、識別碼或預設字面值(值為「DEFAULT」)。 如果有任何錯誤,會回傳 null。

ParseExpression(TextReader, IList<ParseError>, Int32, Int32, Int32)

解析輸入字串以獲得純量表達式。 如果有任何錯誤,會回傳 null。

ParseExpression(TextReader, IList<ParseError>)

解析輸入字串以獲得純量表達式。 如果有任何錯誤,會回傳 null。

ParseScalarDataType(TextReader, IList<ParseError>, Int32, Int32, Int32)

解析輸入字串以取得資料型別。 如果有任何錯誤,會回傳 null。

ParseScalarDataType(TextReader, IList<ParseError>)

解析輸入字串以取得資料型別。 如果有任何錯誤,會回傳 null。

ParseSchemaObjectName(TextReader, IList<ParseError>, Int32, Int32, Int32)

解析輸入字串以取得 SchemaObjectName。 如果有任何錯誤,會回傳 null。

ParseSchemaObjectName(TextReader, IList<ParseError>)

解析輸入字串以取得 SchemaObjectName。 如果有任何錯誤,會回傳 null。

ParseStatementList(TextReader, IList<ParseError>, Int32, Int32, Int32)

解析輸入字串以取得語句清單。 如果有任何錯誤,會回傳 null。

ParseStatementList(TextReader, IList<ParseError>)

解析輸入字串以取得語句清單。 如果有任何錯誤,會回傳 null。

ParseSubQueryExpressionWithOptionalCTE(TextReader, IList<ParseError>, Int32, Int32, Int32)

解析輸入字串以獲得子查詢表達式,並可選共用表表達式與 XML 命名空間。 如果有任何錯誤,會回傳 null。

ParseSubQueryExpressionWithOptionalCTE(TextReader, IList<ParseError>)

解析輸入字串以獲得子查詢表達式,並可選共用表表達式與 XML 命名空間。 如果有任何錯誤,會回傳 null。

TryParseSqlModuleObjectName(TextReader, SchemaObjectName)

解析輸入腳本,若找到,會回傳第一個 create/alter sql_module 陳述式的 SchemaObjectName。

TryParseTriggerModule(TextReader, SchemaObjectName, SchemaObjectName)

解析輸入腳本,回傳第一個 create/alter 觸發語句的觸發名稱和觸發目標名稱。

ValidateIdentifier(String)

檢查名稱是否為有效的 SQL 識別碼

適用於