Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ads ¶
Type Ads is used to implement the "open ads" which launches Azure Data Studio and establishes a connection to the SQL Server for the current context
func (*Ads) DefineCommand ¶
func (c *Ads) DefineCommand(...cmdparser.CommandOptions)
Ads implements the `sqlcmd open ads` command. It opens Azure Data Studio and connects to the current context by using the credentials specified in the context.
Notes ¶
Bugs ¶
There is a bug in ADS that is naming credentials in Mac KeyChain using UTF16 encoding, when it should be UTF8. This prevents us from creating an item in KeyChain that ADS can then re-use (because all the golang Keychain packages take a string for credential name, which is UTF8). Rather than trying to clone the ADS bug here, we prompt the user without to get the credential which they'll have to enter into ADS (once, if they save password in the connection dialog)