You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These APIs are for two different purposes. The first API is part of the QueryProvider interface, which should be implemented by extensions that want to add a new Data Provider type (such as MSSQL, Postgres, MariaDB, etc). The second API is part of the ADS Extensibility API that allows general extensions to update the options for a particular editor. Extensions that aren't adding new Data Providers should only use setExecutionOptions.
Perhaps it makes sense to move the Provider API definitions out of the azdata file to reduce confusion. For 3rd-party extensions I think the current definition of setExecutionOptions is pretty intuitive, just pass in a Map of options. I'm not sure if there is value in introducing the QueryExecutionOptions alias in that use-case.
In the API, we currently have two ways to set the execution options for queries.
First one is through setQueryExecutionOptions for a whole connection. This method has the following signature:
Where QueryExecutionOptions is:
Meanwhile, setExecutionOptions has the following signature:
Proposal: Change the QueryExecutionOptions interface to:
export type QueryExecutionOptions = Map<String, any>;
And change setExecutionOptions to:
setExecutionOptions(options: Map<string, any> | QueryExecutionOptions): Thenable<void>;
The text was updated successfully, but these errors were encountered: