Closed
Description
I have some management statements that I want to execute through the client.
These statements are built with fmt.Sprintf
.
command := fmt.Sprintf(...)
if _, err := client.Mgmt(ctx, db, command); err != nil {
return err
}
So I saw the query is supposed to be of type Stmt
, but I didn't find how to convert this string to Stmt
.
When using NewStmt
, I can only use a raw string as input, but not a predefined one:
working := kustoSDK.NewStmt("some command")
query := "some command"
notWorking := kustoSDK.NewStmt(query)
Am I missing something? How can I fix this issue?
I'm using azure-kust-go version 0.1.3 and go version go1.13.12 darwin/amd64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment