From f2ccdaf3bc83e5f5b994d52a35a9bffc9ebf6c03 Mon Sep 17 00:00:00 2001 From: Aleksey Myasnikov Date: Tue, 15 Oct 2024 16:57:11 +0300 Subject: [PATCH] marked as deprecated options WithDatabase and WithEndpoint --- options.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/options.go b/options.go index 095cd9c05..b2983d366 100644 --- a/options.go +++ b/options.go @@ -199,6 +199,8 @@ func WithConnectionTTL(ttl time.Duration) Option { // Warning: use ydb.Open with required Driver string parameter instead // // For making Driver string from endpoint+database+secure - use sugar.DSN() +// +// Deprecated: use dsn parameter in Open method func WithEndpoint(endpoint string) Option { return func(ctx context.Context, c *Driver) error { c.options = append(c.options, config.WithEndpoint(endpoint)) @@ -212,6 +214,8 @@ func WithEndpoint(endpoint string) Option { // Warning: use ydb.Open with required Driver string parameter instead // // For making Driver string from endpoint+database+secure - use sugar.DSN() +// +// Deprecated: use dsn parameter in Open method func WithDatabase(database string) Option { return func(ctx context.Context, c *Driver) error { c.options = append(c.options, config.WithDatabase(database))