A library of tools to help you analyze Kusto queries.
$ dotnet add package Kusto.ToolkitThis library contains tools to help you load database schemas as the symbols you need to succesfully parse and analyze Kusto queries.
This project depends on:
Use the SymbolLoader family of classes to feed the Kusto parser with database schemas directly from your cluster.
Use the SymbolResolver class along with a SymbolLoader to load schema for cluster/database references in queries.
Use extension methods found in the KustoCodeExtensions class like GetDatabaseTablesReferenced and GetDatabaseTableColumnsReferenced to help you determine
which tables and columns are used in a query, or use GetSourceColumns to determine which database table columns contributed to the content of any result columns.
Use extension methods found in the GlobalStateExtensions class like AddOrUpdateDatabaseMembers to easily add or update tables or functions in the default database,
or used ApplyCommand to apply changes to schema symbols using commands.