Skip to content

Commit 0e3ad58

Browse files
committed
* Added ydb.RegisterParser(name string, parser func(value string) []ydb.Option) function for register parser of specified param name (supporting additional params in connection string)
1 parent 7590c56 commit 0e3ad58

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
* Added `ydb.RegisterParser(name string, parser func(value string) []ydb.Option)` function for register parser of specified param name (supporting additional params in connection string)
12
* Fix write KeepInCacheFlag for table traces
23

34
## v3.29.5

options.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ import (
3131
// Option contains configuration values for Connection
3232
type Option func(ctx context.Context, c *connection) error
3333

34+
func RegisterParser(name string, parser dsn.Parser) error {
35+
return dsn.Register(name, parser)
36+
}
37+
3438
func WithAccessTokenCredentials(accessToken string) Option {
3539
return WithCredentials(
3640
credentials.NewAccessTokenCredentials(

0 commit comments

Comments
 (0)