@@ -73,6 +73,7 @@ def __init__(
73
73
protocol : str | None = None ,
74
74
credentials : ydb .Credentials | dict | str | None = None ,
75
75
ydb_session_pool : SessionPool | AsyncSessionPool | None = None ,
76
+ root_certificates_path : str | None = None ,
76
77
** kwargs : dict ,
77
78
) -> None :
78
79
protocol = protocol if protocol else "grpc"
@@ -101,6 +102,7 @@ def __init__(
101
102
database = self .database ,
102
103
credentials = self .credentials ,
103
104
query_client_settings = self ._get_client_settings (),
105
+ root_certificates = ydb .load_ydb_root_certificate (root_certificates_path ),
104
106
)
105
107
self ._driver = self ._driver_cls (driver_config )
106
108
self ._session_pool = self ._pool_cls (self ._driver , size = 5 )
@@ -176,6 +178,7 @@ def __init__(
176
178
protocol : str | None = None ,
177
179
credentials : ydb .Credentials | None = None ,
178
180
ydb_session_pool : SessionPool | AsyncSessionPool | None = None ,
181
+ root_certificates_path : str | None = None ,
179
182
** kwargs : dict ,
180
183
) -> None :
181
184
super ().__init__ (
@@ -186,6 +189,7 @@ def __init__(
186
189
protocol = protocol ,
187
190
credentials = credentials ,
188
191
ydb_session_pool = ydb_session_pool ,
192
+ root_certificates_path = root_certificates_path ,
189
193
** kwargs ,
190
194
)
191
195
self ._current_cursor : Cursor | None = None
@@ -349,6 +353,7 @@ def __init__(
349
353
protocol : str | None = None ,
350
354
credentials : ydb .Credentials | None = None ,
351
355
ydb_session_pool : SessionPool | AsyncSessionPool | None = None ,
356
+ root_certificates_path : str | None = None ,
352
357
** kwargs : dict ,
353
358
) -> None :
354
359
super ().__init__ (
@@ -359,6 +364,7 @@ def __init__(
359
364
protocol = protocol ,
360
365
credentials = credentials ,
361
366
ydb_session_pool = ydb_session_pool ,
367
+ root_certificates_path = root_certificates_path ,
362
368
** kwargs ,
363
369
)
364
370
self ._current_cursor : AsyncCursor | None = None
0 commit comments