database

package
v0.0.0-...-8fb0621 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTenant

func GetTenant(tenantName string, client *gorm.DB) (tenant models.Tenant, err error)

GetConfigurationCluster :

Types

type DatabaseConnection

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

func NewDatabaseConnection

func NewDatabaseConnection(configurationDatabaseAggregator *models.ConfigurationDatabaseAggregator, pivot *models.Pivot, logicalComponent *models.LogicalComponent) *DatabaseConnection

func (DatabaseConnection) GetConfigurationDatabaseAggregator

func (dc DatabaseConnection) GetConfigurationDatabaseAggregator() *models.ConfigurationDatabaseAggregator

func (DatabaseConnection) GetDatabaseClientByTenant

func (dc DatabaseConnection) GetDatabaseClientByTenant(tenantName string) *gorm.DB

GetDatabaseClientByTenant : Cluster database client getter by tenant.

func (DatabaseConnection) GetLogicalComponent

func (dc DatabaseConnection) GetLogicalComponent() *models.LogicalComponent

func (DatabaseConnection) GetPivot

func (dc DatabaseConnection) GetPivot() *models.Pivot

func (DatabaseConnection) GetTenantDatabaseClient

func (dc DatabaseConnection) GetTenantDatabaseClient() *gorm.DB

Jump to

Keyboard shortcuts

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