dsn

package
v0.38.0-beta2 Latest Latest
Warning

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

Go to latest
Published: May 27, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DBApplication indicates the application using the database.
	DBApplication = "db.application"

	// DBName indicates the database name.
	DBName = "db.name"

	// DBUser indicates the user name of Database, e.g. "readonly_user" or "reporting_user".
	DBUser     = "db.user"
	TargetHost = "out.host"
	TargetPort = "out.port"
)

Variables

This section is empty.

Functions

func ParseDSN

func ParseDSN(driverName, dsn string) (meta map[string]string, err error)

ParseDSN parses various supported DSN types into a map of key/value pairs which can be used as valid tags.

Types

This section is empty.

Jump to

Keyboard shortcuts

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