Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Edge ¶
Edge implements the `sqlcmd install azsql-edge command and sub-commands
func (*Edge) DefineCommand ¶
func (c *Edge) DefineCommand(...cmdparser.CommandOptions)
func (*Edge) SubCommands ¶
type Mssql ¶
Mssql implements the `sqlcmd install mssql` command and sub-commands
func (*Mssql) DefineCommand ¶
func (c *Mssql) DefineCommand(...cmdparser.CommandOptions)
func (*Mssql) SubCommands ¶
type MssqlBase ¶
MssqlBase provide base support for installing SQL Server and all of its various flavors, e.g. SQL Server Edge.
func (*MssqlBase) AddFlags ¶
func (c *MssqlBase) AddFlags( addFlag func(cmdparser.FlagOptions), repo string, defaultContextName string, )
func (*MssqlBase) Run ¶
func (c *MssqlBase) Run()
Run checks that the end-user license agreement has been accepted, constructs the container image name from the provided registry, repository, and tag, and sets the context name to a default value if it is not provided. Then, it creates the image as a container and names it using the context name. Once the container is running, if a database backup file is provided, it is downloaded, restored attached. If the EULA has not been accepted, it prints an error message with suggestions for how to proceed, and exits the program.
Notes ¶
Bugs ¶
SQL Server bug: "SQL Server is now ready for client connections", oh no it isn't!! Wait for "Server name is" instead! Nope, that doesn't work on edge Wait for "The default language" instead
This obviously doesn't work for non US LCIDs