Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions SqlScriptDom/Parser/TSql/Ast.xml
Original file line number Diff line number Diff line change
Expand Up @@ -794,6 +794,30 @@
<InheritedMember Name="MethodSpecifier" ContainerClass ="ProcedureStatementBodyBase" />
<InheritedMember Name="OrderHint" ContainerClass ="FunctionStatementBody" />
</Class>
<Class Name="ExternalFunctionStatement" Base="TSqlStatement" Abstract="true" Summary="Represents the CREATE/ALTER FUNCTION ... AS EXTERNAL FUNCTION statement.">
<Member Name="Name" Type="SchemaObjectName" Summary="The name of the function being created or altered. Can at most be a two part name."/>
<Member Name="Parameters" Type="ProcedureParameter" Collection="true" Summary="Parameters which can be passed to the external function."/>
<Member Name="ReturnType" Type="DataTypeReference" Summary="Optional RETURNS clause specifying the data type returned by the external function."/>
<Member Name="ExternalName" Type="SchemaObjectName" Summary="The external function reference of the form functionSetName.functionName."/>
</Class>
<Class Name="CreateExternalFunctionStatement" Base="ExternalFunctionStatement" Summary="Represents the CREATE FUNCTION ... AS EXTERNAL FUNCTION statement.">
<InheritedMember Name="Name" ContainerClass ="ExternalFunctionStatement" />
<InheritedMember Name="Parameters" ContainerClass ="ExternalFunctionStatement" />
<InheritedMember Name="ReturnType" ContainerClass ="ExternalFunctionStatement" />
<InheritedMember Name="ExternalName" ContainerClass ="ExternalFunctionStatement" />
</Class>
<Class Name="AlterExternalFunctionStatement" Base="ExternalFunctionStatement" Summary="Represents the ALTER FUNCTION ... AS EXTERNAL FUNCTION statement.">
<InheritedMember Name="Name" ContainerClass ="ExternalFunctionStatement" />
<InheritedMember Name="Parameters" ContainerClass ="ExternalFunctionStatement" />
<InheritedMember Name="ReturnType" ContainerClass ="ExternalFunctionStatement" />
<InheritedMember Name="ExternalName" ContainerClass ="ExternalFunctionStatement" />
</Class>
<Class Name="CreateOrAlterExternalFunctionStatement" Base="ExternalFunctionStatement" Summary="Represents the CREATE OR ALTER FUNCTION ... AS EXTERNAL FUNCTION statement.">
<InheritedMember Name="Name" ContainerClass ="ExternalFunctionStatement" />
<InheritedMember Name="Parameters" ContainerClass ="ExternalFunctionStatement" />
<InheritedMember Name="ReturnType" ContainerClass ="ExternalFunctionStatement" />
<InheritedMember Name="ExternalName" ContainerClass ="ExternalFunctionStatement" />
</Class>
<Class Name="CreateRuleStatement" Base="TSqlStatement" Summary="Represents the Create Rule statement.">
<Member Name="Name" Type="SchemaObjectName" Summary="Represents the name. DatabaseName is disallowed here, has to equal String.Empty or null."/>
<Member Name="Expression" Type="BooleanExpression" Summary="Expression that is the rule."/>
Expand Down Expand Up @@ -4658,6 +4682,28 @@
<InheritedMember Name="IndexOptions" ContainerClass="IndexStatement" />
<Member Name="OnFileGroupOrPartitionScheme" Type="FileGroupOrPartitionScheme" Summary="The filegroup or partition scheme. Might be null."/>
</Class>
<Class Name="SemanticIndexChunkOption" Summary="Represents a chunk option in a CHUNK_USING clause of a semantic index column.">
<Member Name="OptionKind" Type="SemanticIndexChunkOptionKind" GenerateUpdatePositionInfoCall="false" Summary="The kind of chunk option (Type, Size, or Overlap)."/>
<Member Name="Value" Type="IdentifierOrValueExpression" Summary="The value of the chunk option."/>
</Class>
<Class Name="SemanticIndexColumn" Summary="Represents a column definition in a CREATE SEMANTIC INDEX statement.">
<Member Name="ColumnName" Type="Identifier" Summary="The column name."/>
<Member Name="SearchType" Type="SemanticIndexSearchType" GenerateUpdatePositionInfoCall="false" Summary="The search type (vector, fulltext, hybrid). NotSpecified if not specified."/>
<Member Name="TypeColumnName" Type="Identifier" Summary="The TYPE COLUMN name. Optional may be null."/>
<Member Name="Language" Type="IdentifierOrValueExpression" Summary="The LANGUAGE term. Optional may be null."/>
<Member Name="ChunkOptions" Type="SemanticIndexChunkOption" Collection="true" Summary="The CHUNK_USING options. Optional may have zero elements."/>
</Class>
<Class Name="CreateSemanticIndexStatement" Base="IndexStatement" Summary="Represents the CREATE SEMANTIC INDEX statement.">
<InheritedMember Name="Name" ContainerClass="IndexStatement" />
<InheritedMember Name="OnName" ContainerClass="IndexStatement" />
<Member Name="Columns" Type="SemanticIndexColumn" Collection="true" Summary="The column definitions."/>
<Member Name="ExternalModelName" Type="Identifier" Summary="The external model name. Optional may be null."/>
<Member Name="ExternalModelParameters" Type="StringLiteral" Summary="The PARAMETERS value for the external model. Optional may be null."/>
<Member Name="VectorIndexOptions" Type="IndexOption" Collection="true" Summary="The VECTOR_INDEX options (METRIC, TYPE). Optional may have zero elements."/>
<Member Name="FulltextStoplistOption" Type="StopListFullTextIndexOption" Summary="The FULLTEXT_STOPLIST option. Optional may be null."/>
<InheritedMember Name="IndexOptions" ContainerClass="IndexStatement" />
<Member Name="OnFileGroupOrPartitionScheme" Type="FileGroupOrPartitionScheme" Summary="The filegroup or partition scheme. Might be null."/>
</Class>
<Class Name="WindowFrameClause" Summary="Represents the specification of window bounds for windowing aggregates.">
<Member Name="Top" Type="WindowDelimiter" Summary="Top boundary of the window."/>
<Member Name="Bottom" Type="WindowDelimiter" Summary="Bottom boundary of the window. Optional may be null."/>
Expand Down Expand Up @@ -4806,6 +4852,12 @@
<Member Name="Input" Type="ScalarExpression" Summary="Text to translate; variable or column reference." />
<Member Name="Language" Type="ScalarExpression" Summary="Target language; typically string literal or identifier." />
</Class>
<Class Name="InvokeExternalApiFunctionCall" Base="PrimaryExpression" Summary="Represents INVOKE_EXTERNAL_API(...) function call.">
<InheritedClass Name="PrimaryExpression" />
<Member Name="FunctionSetName" Type="StringLiteral" Summary="Function set name (string literal, required)." />
<Member Name="FunctionName" Type="StringLiteral" Summary="Function name (string literal, required)." />
<Member Name="Arguments" Type="ScalarExpression" Collection="true" Summary="Optional additional arguments passed to the external API." />
</Class>
<Class Name="VectorSearchTableReference" Base="TableReferenceWithAlias" Summary="Represents the VECTOR_SEARCH table-valued function call.">
<InheritedClass Name="TableReferenceWithAlias" />
<Member Name="Table" Type="TableReferenceWithAlias" Summary="Table on which perform the search." />
Expand Down
11 changes: 11 additions & 0 deletions SqlScriptDom/Parser/TSql/CodeGenerationSupporter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ internal static class CodeGenerationSupporter
internal const string ChangeTable = "CHANGETABLE";
internal const string ChangeTracking = "CHANGE_TRACKING";
internal const string ChangeTrackingContext = "CHANGE_TRACKING_CONTEXT";
internal const string Chapter = "CHAPTER";
internal const string Char = "CHAR";
internal const string CharacterSet = "CHARACTER_SET";
internal const string CheckConstraints = "CHECK_CONSTRAINTS";
Expand All @@ -214,6 +215,7 @@ internal static class CodeGenerationSupporter
internal const string ChecksumAgg = "CHECKSUM_AGG";
internal const string ChunkSize = "CHUNK_SIZE";
internal const string ChunkType = "CHUNK_TYPE";
internal const string ChunkUsing = "CHUNK_USING";
internal const string ModularSum = "MODULAR_SUM";
internal const string Classifier = "CLASSIFIER";
internal const string Classification = "CLASSIFICATION";
Expand Down Expand Up @@ -394,6 +396,7 @@ internal static class CodeGenerationSupporter
internal const string Extension = "EXTENSION";
internal const string External = "EXTERNAL";
internal const string ExternalAccess = "EXTERNAL_ACCESS";
internal const string ExternalModel = "EXTERNAL_MODEL";
internal const string ExternalMonitor = "EXTERNAL_MONITOR";
internal const string Extract = "EXTRACT";
internal const string FailOperation = "FAIL_OPERATION";
Expand Down Expand Up @@ -465,6 +468,7 @@ internal static class CodeGenerationSupporter
internal const string Full = "FULL";
internal const string FullScan = "FULLSCAN";
internal const string Fulltext = "FULLTEXT";
internal const string FulltextStopList = "FULLTEXT_STOPLIST";
internal const string General = "GENERAL";
internal const string GenerateSeries = "GENERATE_SERIES";
internal const string Generated = "GENERATED";
Expand Down Expand Up @@ -499,6 +503,7 @@ internal static class CodeGenerationSupporter
internal const string Hidden = "HIDDEN";
internal const string High = "HIGH";
internal const string Hint = "HINT";
internal const string Hybrid = "HYBRID";
internal const string Histogram = "HISTOGRAM";
internal const string HistogramSteps = "HISTOGRAM_STEPS";
internal const string HistoryRetentionPeriod = "HISTORY_RETENTION_PERIOD";
Expand Down Expand Up @@ -536,6 +541,7 @@ internal static class CodeGenerationSupporter
internal const string Intermediate = "INTERMEDIATE";
internal const string IntervalLengthMinutes = "INTERVAL_LENGTH_MINUTES";
internal const string Insensitive = "INSENSITIVE";
internal const string InvokeExternalApi = "INVOKE_EXTERNAL_API";
internal const string IRowset = "IROWSET";
internal const string Isolation = "ISOLATION";
internal const string Job = "JOB";
Expand Down Expand Up @@ -755,6 +761,7 @@ internal static class CodeGenerationSupporter
internal const string PageCount = "PAGECOUNT";
internal const string PageVerify = "PAGE_VERIFY";
internal const string PagLock = "PAGLOCK";
internal const string Paragraph = "PARAGRAPH";
internal const string Param = "PARAM";
internal const string Parameter = "PARAMETER";
internal const string Parameters = "PARAMETERS";
Expand Down Expand Up @@ -926,6 +933,7 @@ internal static class CodeGenerationSupporter
internal const string Scroll = "SCROLL";
internal const string ScrollLocks = "SCROLL_LOCKS";
internal const string Search = "SEARCH";
internal const string SearchType = "SEARCH_TYPE";
internal const string Secondary = "SECONDARY";
internal const string SecondaryRole = "SECONDARY_ROLE";
internal const string Seconds = "SECONDS";
Expand All @@ -935,6 +943,8 @@ internal static class CodeGenerationSupporter
internal const string SecurityLog = "SECURITY_LOG";
internal const string Selective = "SELECTIVE";
internal const string Self = "SELF";
internal const string Semantic = "SEMANTIC";
internal const string Sentence = "SENTENCE";
internal const string SemiColon = ";";
internal const string Send = "SEND";
internal const string Sensitivity = "SENSITIVITY";
Expand Down Expand Up @@ -1123,6 +1133,7 @@ internal static class CodeGenerationSupporter
internal const string Varp = "VARP";
internal const string VDevNo = "VDEVNO";
internal const string Vector = "Vector";
internal const string VectorIndex = "VECTOR_INDEX";
internal const string VectorSearch = "VECTOR_SEARCH";
internal const string Verbose = "VERBOSE";
internal const string VerboseLogging = "VerboseLogging";
Expand Down
24 changes: 24 additions & 0 deletions SqlScriptDom/Parser/TSql/SemanticIndexChunkOptionKind.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
//------------------------------------------------------------------------------
// <copyright file="SemanticIndexChunkOptionKind.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
//------------------------------------------------------------------------------



namespace Microsoft.SqlServer.TransactSql.ScriptDom
{
#pragma warning disable 1591

/// <summary>
/// The possible values for semantic index chunk options.
/// </summary>
public enum SemanticIndexChunkOptionKind
{
Type = 0,
Size = 1,
Overlap = 2
}

#pragma warning restore 1591
}
25 changes: 25 additions & 0 deletions SqlScriptDom/Parser/TSql/SemanticIndexSearchType.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
//------------------------------------------------------------------------------
// <copyright file="SemanticIndexSearchType.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
//------------------------------------------------------------------------------



namespace Microsoft.SqlServer.TransactSql.ScriptDom
{
#pragma warning disable 1591

/// <summary>
/// The possible values for semantic index search type.
/// </summary>
public enum SemanticIndexSearchType
{
NotSpecified = 0,
Vector = 1,
Fulltext = 2,
Hybrid = 3
}

#pragma warning restore 1591
}
Loading
Loading