microsoft / SqlScriptDOM

ScriptDOM/SqlDOM is a .NET library for parsing T-SQL statements and interacting with its abstract syntax tree

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

async version of `Microsoft.SqlServer.TransactSql.ScriptDom.TSqlFragmentVisitor`

lsoft opened this issue · comments

I extensively use Microsoft.SqlServer.TransactSql.ScriptDom.TSqlFragmentVisitor to validate my queries against my DB schema, and in literally every of its method I need to execute some SQL queries (e.g. CreateCommand + ExecuteReader)

To make my code more modern, I want to use async methods (e.g. CreateCommand + ExecuteReaderAsync), so I need to have the following methods because these methods are above on my stack:

public abstract class TSqlFragmentVisitor
{
   public virtual Task ExplicitVisitAsync(FederationScheme node);
}

and

public abstract class TSqlFragment
{
        public virtual Task AcceptAsync(TSqlFragmentVisitor visitor);
        public virtual Task AcceptChildrenAsync(TSqlFragmentVisitor visitor);

}

Please consider to add these methods.

Thank you!