summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrekby <[email protected]>2023-05-15 09:03:25 +0300
committerrekby <[email protected]>2023-05-15 09:03:25 +0300
commitb48461977a3888bf035dac67d2a2faefaf1f0fcd (patch)
tree69097f55bd111d76d7e6c1d41fcee5e3ff51b40e
parent6006e804478c44582f3ce702e7c6a33328426669 (diff)
remove construct_credentials_from_environ from doc examples
-rw-r--r--ydb/docs/en/core/reference/ydb-sdk/example/python/index.md2
-rw-r--r--ydb/docs/ru/core/reference/ydb-sdk/example/python/index.md4
2 files changed, 3 insertions, 3 deletions
diff --git a/ydb/docs/en/core/reference/ydb-sdk/example/python/index.md b/ydb/docs/en/core/reference/ydb-sdk/example/python/index.md
index 4a478ba4c9e..9a7455a1b80 100644
--- a/ydb/docs/en/core/reference/ydb-sdk/example/python/index.md
+++ b/ydb/docs/en/core/reference/ydb-sdk/example/python/index.md
@@ -24,7 +24,7 @@ App code snippet for driver initialization:
```python
def run(endpoint, database, path):
driver_config = ydb.DriverConfig(
- endpoint, database, credentials=ydb.construct_credentials_from_environ(),
+ endpoint, database, credentials=ydb.credentials_from_env_variables(),
root_certificates=ydb.load_ydb_root_certificate(),
)
with ydb.Driver(driver_config) as driver:
diff --git a/ydb/docs/ru/core/reference/ydb-sdk/example/python/index.md b/ydb/docs/ru/core/reference/ydb-sdk/example/python/index.md
index 2588f4bc60e..dd90896b048 100644
--- a/ydb/docs/ru/core/reference/ydb-sdk/example/python/index.md
+++ b/ydb/docs/ru/core/reference/ydb-sdk/example/python/index.md
@@ -24,7 +24,7 @@ python3 -m pip install iso8601
```python
def run(endpoint, database, path):
driver_config = ydb.DriverConfig(
- endpoint, database, credentials=ydb.construct_credentials_from_environ(),
+ endpoint, database, credentials=ydb.credentials_from_env_variables(),
root_certificates=ydb.load_ydb_root_certificate(),
)
with ydb.Driver(driver_config) as driver:
@@ -52,7 +52,7 @@ def create_tables(session, path):
session.create_table(
os.path.join(path, 'series'),
ydb.TableDescription()
- .with_column(ydb.Column('series_id', ydb.PrimitiveType.Uint64)) # not null column
+ .with_column(ydb.Column('series_id', ydb.PrimitiveType.Uint64)) # not null column
.with_column(ydb.Column('title', ydb.OptionalType(ydb.PrimitiveType.Utf8)))
.with_column(ydb.Column('series_info', ydb.OptionalType(ydb.PrimitiveType.Utf8)))
.with_column(ydb.Column('release_date', ydb.OptionalType(ydb.PrimitiveType.Uint64)))