Skip to content

Commit 9c8cd67

Browse files
authored
Merge pull request #1510 from ydb-platform/deprecated
marked as deprecated options WithDatabase and WithEndpoint
2 parents dfe2ad8 + f2ccdaf commit 9c8cd67

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

options.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,8 @@ func WithConnectionTTL(ttl time.Duration) Option {
199199
// Warning: use ydb.Open with required Driver string parameter instead
200200
//
201201
// For making Driver string from endpoint+database+secure - use sugar.DSN()
202+
//
203+
// Deprecated: use dsn parameter in Open method
202204
func WithEndpoint(endpoint string) Option {
203205
return func(ctx context.Context, c *Driver) error {
204206
c.options = append(c.options, config.WithEndpoint(endpoint))
@@ -212,6 +214,8 @@ func WithEndpoint(endpoint string) Option {
212214
// Warning: use ydb.Open with required Driver string parameter instead
213215
//
214216
// For making Driver string from endpoint+database+secure - use sugar.DSN()
217+
//
218+
// Deprecated: use dsn parameter in Open method
215219
func WithDatabase(database string) Option {
216220
return func(ctx context.Context, c *Driver) error {
217221
c.options = append(c.options, config.WithDatabase(database))

0 commit comments

Comments
 (0)