sql

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2021 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DatabaseTables = []interface{}{
	&Database{},
	&DatabaseTransparentDataEncryption{},
	&DatabaseTag{},
}
View Source
var ServerTables = []interface{}{
	&Server{},
	&ServerTag{},
}

Functions

func Databases

func Databases(subscriptionID string, auth autorest.Authorizer, db *database.Database, log hclog.Logger, gConfig interface{}) error

func Servers

func Servers(subscriptionID string, auth autorest.Authorizer, db *database.Database, log hclog.Logger, gConfig interface{}) error

Types

type Database

type Database struct {
	ID             uint   `gorm:"primarykey"`
	SubscriptionID string `neo:"unique"`
	Kind           *string

	Collation                               *string
	CreationDate                            time.Time
	ContainmentState                        *int64
	CurrentServiceObjectiveID               string
	DatabaseID                              string `neo:"unique"`
	EarliestRestoreDate                     time.Time
	CreateMode                              string
	SourceDatabaseID                        *string
	SourceDatabaseDeletionDate              time.Time
	RestorePointInTime                      time.Time
	RecoveryServicesRecoveryPointResourceID *string
	Edition                                 string
	MaxSizeBytes                            *string
	RequestedServiceObjectiveID             string
	RequestedServiceObjectiveName           string
	ServiceLevelObjective                   string
	Status                                  *string
	ElasticPoolName                         *string
	DefaultSecondaryLocation                *string
	TransparentDataEncryption               []*DatabaseTransparentDataEncryption `gorm:"constraint:OnDelete:CASCADE;"`
	FailoverGroupID                         *string
	ReadScale                               string
	SampleName                              string
	ZoneRedundant                           *bool

	Location   *string
	Tags       []*DatabaseTag `gorm:"constraint:OnDelete:CASCADE;"`
	ResourceID *string
	Name       *string
	Type       *string
}

func (Database) TableName

func (Database) TableName() string

type DatabaseConfig

type DatabaseConfig struct {
	Filter string
}

type DatabaseTag

type DatabaseTag struct {
	ID             uint   `gorm:"primarykey"`
	DatabaseID     uint   `neo:"ignore"`
	SubscriptionID string `gorm:"-"`

	Key   string
	Value *string
}

func (DatabaseTag) TableName

func (DatabaseTag) TableName() string

type DatabaseTransparentDataEncryption

type DatabaseTransparentDataEncryption struct {
	ID             uint   `gorm:"primarykey"`
	DatabaseID     uint   `neo:"ignore"`
	SubscriptionID string `gorm:"-"`

	Location   *string
	Status     string
	ResourceID *string
	Name       *string
	Type       *string
}

func (DatabaseTransparentDataEncryption) TableName

type Server

type Server struct {
	ID             uint `gorm:"primarykey"`
	SubscriptionID string
	Kind           *string

	// ServerProperties
	FullyQualifiedDomainName   *string
	Version                    string
	AdministratorLogin         *string
	ExternalAdministratorSid   string
	ExternalAdministratorLogin *string
	State                      string

	Location   *string
	Tags       []*ServerTag `gorm:"constraint:OnDelete:CASCADE;"`
	ResourceID *string
	Name       *string
	Type       *string
	// contains filtered or unexported fields
}

func (Server) TableName

func (Server) TableName() string

type ServerConfig

type ServerConfig struct {
	Filter string
}

type ServerTag

type ServerTag struct {
	ID             uint   `gorm:"primarykey"`
	ServerID       uint   `neo:"ignore"`
	SubscriptionID string `gorm:"-"`

	Key   string
	Value *string
}

func (ServerTag) TableName

func (ServerTag) TableName() string

Jump to

Keyboard shortcuts

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