sqlutils

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 27, 2022 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SQLCluster

type SQLCluster struct {
	URI       string
	Databases []string
	Schemas   []string
	// contains filtered or unexported fields
}

SQLCluster represents a SQL Server Databse

func NewSQLCluster

func NewSQLCluster(uri string, c client.Client, notifier utils.NotifyProgressFunc) *SQLCluster

NewSQLCluster returns a new `SQLCluster`

func (*SQLCluster) AquireTargets

AquireTargets for SQL Server supports 2 modes: 1. return a single DB - to be used as the target DB. 2. if the schema filter is defined we will use it as a regexp to filter schemas - and apply the DacPac per schema.

func (*SQLCluster) CreateExecConfiguration

func (c *SQLCluster) CreateExecConfiguration(targets schemav1alpha1.ClusterTargets, cfgMap *v1.ConfigMap, failIfDataLoss bool) (schemav1alpha1.ExecutionConfiguration, error)

CreateExecConfiguration creates a configuration for the execution of the dacpac in the ConfigMap on the provided targets

func (*SQLCluster) Execute

Execute runs the configured dacpacs on the targets defined.

Jump to

Keyboard shortcuts

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