mssql

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package mssql implements DBCreator interface for MS SQL Server

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrPasswordEmpty     error = errors.New("password can't be empty")
	ErrPasswordTooShort  error = errors.New("password is too short (must be at least 10 chars)")
	ErrPasswordTooSimple error = errors.New(
		"password doesn't meet the complexity requirements " +
			"(must contain 3 out of 4 char types: lowercase char, uppercase char, digit, non-alphanumeric)",
	)
)

Functions

This section is empty.

Types

type Creator

type Creator struct{}

func (Creator) Create

func (c Creator) Create(shell dbcreator.Shell, opts dbcreator.CreateOptions) error

func (Creator) GetCapabilities

func (c Creator) GetCapabilities() dbcreator.Capabilities

func (Creator) GetDefaultOpts

func (c Creator) GetDefaultOpts() dbcreator.DefaultOpts

func (Creator) ValidatePassword

func (c Creator) ValidatePassword(password string) error

type ProgressLogger added in v1.3.0

type ProgressLogger struct {
	// contains filtered or unexported fields
}

func NewProgressLogger added in v1.3.0

func NewProgressLogger(verbose bool) ProgressLogger

func (*ProgressLogger) Done added in v1.3.0

func (l *ProgressLogger) Done()

func (*ProgressLogger) LogState added in v1.3.0

func (l *ProgressLogger) LogState(state string)

func (*ProgressLogger) LogVerbose added in v1.3.0

func (l *ProgressLogger) LogVerbose(s ...any)

type SQLInContainerRunner added in v1.2.0

type SQLInContainerRunner struct {
	// contains filtered or unexported fields
}

func (SQLInContainerRunner) Run added in v1.2.0

func (r SQLInContainerRunner) Run(sql string) error

func (SQLInContainerRunner) RunInDB added in v1.2.0

func (r SQLInContainerRunner) RunInDB(sql string) error

func (SQLInContainerRunner) RunSilent added in v1.2.0

func (r SQLInContainerRunner) RunSilent(sql string) error

type Token

type Token struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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