dsn

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2022 License: MPL-2.0 Imports: 6 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseConnectionString

func ParseConnectionString(connString string) (*dburl.URL, error)

ParseConnectionString will try and parse any type of connection string and return a dburl

func RedactParseError

func RedactParseError(err error) error

RedactParseError looks for url.Error and redacts the URL (DSN) The original message wrapping the url.Error is lost.

func SetDSNElement

func SetDSNElement(dsn string, elems map[string]string) (string, error)

SetDSNElement parses the given DSN and sets/adds the given map values as query parameters, returning a URI DSN

Types

This section is empty.

Jump to

Keyboard shortcuts

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