dbconn

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DataSourceName

func DataSourceName(d DataSourceNameParams) (string, error)

DataSourceName returns the data source name of the database.

Types

type DataSourceNameParams

type DataSourceNameParams struct {
	Username        string
	Password        string
	Database        string
	EndpointsString string
	LoadBalance     bool
	TLS             DatabaseTLSConfig
}

DataSourceNameParams defines the parameters required to construct a database connection string.

type DatabaseTLSConfig

type DatabaseTLSConfig struct {
	Mode       string `mapstructure:"mode"`
	CACertPath string `mapstructure:"ca-cert-path"`
}

DatabaseTLSConfig holds the database TLS mode and its necessary credentials.

Jump to

Keyboard shortcuts

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