Microsoft.SqlServer.TransactSql.ScriptDom by Microsoft

<PackageReference Include="Microsoft.SqlServer.TransactSql.ScriptDom" Version="161.9109.0" />

.NET API 5,160,480 bytes

 SqlScriptGenerator

public abstract class SqlScriptGenerator
Sql specific script generator.

Gets the options.

Initializes a new instance of the SqlScriptGenerator class.

public void GenerateScript(TSqlFragment scriptFragment, out string script)

Populates the writer with a script with the scriptFragment.

public void GenerateScript(TSqlFragment scriptFragment, out string script, out IList versioningErrors)

Populates the writer with a script with the scriptFragment.

public void GenerateScript(TSqlFragment scriptFragment, TextWriter writer)

Generates text representing the specified script fragment

Generates a list of tokens representing the script generated by the specified script fragment