sql

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2023 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

View Source
const (
	DatabaseFamilyMySQL     = "MYSQL"
	DatabaseFamilyPostgres  = "POSTGRES"
	DatabaseFamilySQLServer = "SQLSERVER"
)
View Source
const (
	DatabaseVersionMySQL_5_6                 = "MYSQL_5_6"
	DatabaseVersionMySQL_5_7                 = "MYSQL_5_7"
	DatabaseVersionMySQL_8_0                 = "MYSQL_8_0"
	DatabaseVersionPostgres_9_6              = "POSTGRES_9_6"
	DatabaseVersionPostgres_10               = "POSTGRES_10"
	DatabaseVersionPostgres_11               = "POSTGRES_11"
	DatabaseVersionPostgres_12               = "POSTGRES_12"
	DatabaseVersionPostgres_13               = "POSTGRES_13"
	DatabaseVersionSQLServer_2017_STANDARD   = "SQLSERVER_2017_STANDARD"
	DatabaseVersionSQLServer_2017_ENTERPRISE = "SQLSERVER_2017_ENTERPRISE"
	DatabaseVersionSQLServer_2017_EXPRESS    = "SQLSERVER_2017_EXPRESS"
	DatabaseVersionSQLServer_2017_WEB        = "SQLSERVER_2017_WEB"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Backups

type Backups struct {
	Metadata defsecTypes.Metadata
	Enabled  defsecTypes.BoolValue
}

type DatabaseInstance

type DatabaseInstance struct {
	Metadata        defsecTypes.Metadata
	DatabaseVersion defsecTypes.StringValue
	Settings        Settings
	IsReplica       defsecTypes.BoolValue
}

func (*DatabaseInstance) DatabaseFamily

func (i *DatabaseInstance) DatabaseFamily() string

type Flags

type Flags struct {
	Metadata                        defsecTypes.Metadata
	LogTempFileSize                 defsecTypes.IntValue
	LocalInFile                     defsecTypes.BoolValue
	ContainedDatabaseAuthentication defsecTypes.BoolValue
	CrossDBOwnershipChaining        defsecTypes.BoolValue
	LogCheckpoints                  defsecTypes.BoolValue
	LogConnections                  defsecTypes.BoolValue
	LogDisconnections               defsecTypes.BoolValue
	LogLockWaits                    defsecTypes.BoolValue
	LogMinMessages                  defsecTypes.StringValue // FATAL, PANIC, LOG, ERROR, WARN
	LogMinDurationStatement         defsecTypes.IntValue
}

type IPConfiguration

type IPConfiguration struct {
	Metadata           defsecTypes.Metadata
	RequireTLS         defsecTypes.BoolValue
	EnableIPv4         defsecTypes.BoolValue
	AuthorizedNetworks []struct {
		Name defsecTypes.StringValue
		CIDR defsecTypes.StringValue
	}
}

type SQL

type SQL struct {
	Instances []DatabaseInstance
}

type Settings

type Settings struct {
	Metadata        defsecTypes.Metadata
	Flags           Flags
	Backups         Backups
	IPConfiguration IPConfiguration
}

Jump to

Keyboard shortcuts

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