Documentation ¶
Index ¶
Constants ¶
View Source
const ( AdminSchemaName string = "admin" SDPSchemaNamePrefix string = "sdp_" TSSSchemaName string = "tss" )
Variables ¶
This section is empty.
Functions ¶
func GetDSNForAdmin ¶
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 ¶
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.