File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff 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
202204func 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
215219func WithDatabase (database string ) Option {
216220 return func (ctx context.Context , c * Driver ) error {
217221 c .options = append (c .options , config .WithDatabase (database ))
You can’t perform that action at this time.
0 commit comments