open

package
v0.0.1001 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 1, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ads

type Ads struct {
	cmdparser.Cmd
}

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL