From d4f01565f28abf45a57784fcb06bccbe2927ea2d Mon Sep 17 00:00:00 2001 From: Aleksey Myasnikov Date: Wed, 13 Nov 2024 15:12:37 +0300 Subject: [PATCH] Update MIGRATION_v2_v3.md --- MIGRATION_v2_v3.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MIGRATION_v2_v3.md b/MIGRATION_v2_v3.md index 758964837..726d0e524 100644 --- a/MIGRATION_v2_v3.md +++ b/MIGRATION_v2_v3.md @@ -49,7 +49,7 @@ ) ... db, err := ydb.Open(ctx, - sugar.DSN(cfg.Endpoint, cfg.Database, cfg.Secure) + sugar.DSN(cfg.Endpoint, cfg.Database, sugar.WithSecure(cfg.Secure)) ) if err != nil { // error fallback @@ -374,4 +374,4 @@ In this case query must be changed for supporting pagination. Truncated flag in ) ``` -See additional docs in [code recipes](https://ydb.tech/docs/reference/ydb-sdk/recipes/). \ No newline at end of file +See additional docs in [code recipes](https://ydb.tech/docs/reference/ydb-sdk/recipes/).