router

package
v0.0.0-...-e0091a7 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AdminSchemaName     string = "admin"
	SDPSchemaNamePrefix string = "sdp_"
	TSSSchemaName       string = "tss"
)

Variables

This section is empty.

Functions

func GetDSNForAdmin

func GetDSNForAdmin(dataSourceName string) (string, error)

GetDSNForAdmin returns the database DSN for the Admin schema. It is the same as the root database DSN, clearing the `search_path` if it exists.

func GetDSNForTSS

func GetDSNForTSS(dataSourceName string) (string, error)

GetDSNForTSS returns the database DSN for the TSS schema. It is basically the same as the root database DSN, but with the `search_path` query parameter (AKA schema) set to `tss`.

func GetDSNForTenant

func GetDSNForTenant(dataSourceName, tenantName string) (string, error)

GetDSNForTenant returns the database DSN for the tenant schema. It is basically the same as the root database DSN, but with the `search_path` query parameter (AKA schema) set to `sdp_<tenant_name>`.

Types

This section is empty.

Jump to

Keyboard shortcuts

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