install

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Edge

type Edge struct {
	cmdparser.Cmd
	MssqlBase
}

Edge implements the `sqlcmd install azsql-edge command and sub-commands

func (*Edge) DefineCommand

func (c *Edge) DefineCommand(...cmdparser.CommandOptions)

func (*Edge) SubCommands

func (c *Edge) SubCommands() []cmdparser.Command

type Mssql

type Mssql struct {
	cmdparser.Cmd
	MssqlBase
}

Mssql implements the `sqlcmd install mssql` command and sub-commands

func (*Mssql) DefineCommand

func (c *Mssql) DefineCommand(...cmdparser.CommandOptions)

func (*Mssql) SubCommands

func (c *Mssql) SubCommands() []cmdparser.Command

type MssqlBase

type MssqlBase struct {
	cmdparser.Cmd
	// contains filtered or unexported fields
}

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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