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.0
Published
Apr 11, 2022
Platform
windows/amd64
Imports
4 packages
Last checked
15 seconds ago

Tools for package owners.