Skip to content

Commit

Permalink
marked as deprecated options WithDatabase and WithEndpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
asmyasnikov committed Oct 17, 2024
1 parent dfe2ad8 commit f2ccdaf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions options.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand All @@ -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))
Expand Down

0 comments on commit f2ccdaf

Please sign in to comment.