package dsn

import "github.com/ydb-platform/ydb-go-sdk/v3/dsn"

Index

Functions

func RegisterParser

func RegisterParser(param string, parser func(value string) ([]config.Option, error)) (err error)

Types

type DSN

type DSN interface {
	fmt.Stringer

	// WithSecure makes new DSN from current DSN with passed secure flag
	WithSecure(secure bool) DSN
}

DSN helps to make connection string from separated endpoint and database

func New

func New(endpoint, database string) DSN

New makes secured DSN with endpoint and database

Source Files

dsn.go parser.go

Version
v3.20.1
Published
Apr 12, 2022
Platform
linux/amd64
Imports
4 packages
Last checked
26 minutes ago

Tools for package owners.