mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-21 01:25:42 -05:00
3491 Kusto Execute Function support (#1055)
* 3491 Added GenerateExecuteFunctionScript to IDataSource, DataSourceBase, and KustoDataSource. Added ExecutionFunction to Scripter and IScripter. * 3491 Refactored GenerateScriptForFunction in ScriptAsScriptingOperation to handle execute and alter
This commit is contained in:
@@ -1047,6 +1047,15 @@ namespace Microsoft.Kusto.ServiceLayer.DataSource
|
||||
return alterCommand.ToString();
|
||||
}
|
||||
|
||||
public override string GenerateExecuteFunctionScript(string functionName)
|
||||
{
|
||||
var functionInfo = GetFunctionInfo(functionName);
|
||||
|
||||
return functionInfo == null
|
||||
? string.Empty
|
||||
: $"{functionInfo.Name}{functionInfo.Parameters}";
|
||||
}
|
||||
|
||||
private string GenerateMetadataKey(string databaseName, string objectName)
|
||||
{
|
||||
return string.IsNullOrWhiteSpace(objectName) ? databaseName : $"{databaseName}.{objectName}";
|
||||
|
||||
Reference in New Issue
Block a user