diff options
author | ilnaz <ilnaz@ydb.tech> | 2022-12-09 16:59:33 +0300 |
---|---|---|
committer | ilnaz <ilnaz@ydb.tech> | 2022-12-09 16:59:33 +0300 |
commit | e1cb9c89a9bf4af3bb75cd0c0523b7e46c87648b (patch) | |
tree | da75d261e12a057cc61648573bb8c6c891cf605e | |
parent | b03483f7ffd1befba201b099d34ceb59535706f4 (diff) | |
download | ydb-e1cb9c89a9bf4af3bb75cd0c0523b7e46c87648b.tar.gz |
Fix typo
-rw-r--r-- | ydb/docs/en/core/concepts/_includes/ttl.md | 2 | ||||
-rw-r--r-- | ydb/docs/ru/core/concepts/_includes/ttl.md | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ydb/docs/en/core/concepts/_includes/ttl.md b/ydb/docs/en/core/concepts/_includes/ttl.md index 6c12dbb46dd..4f97c0b4d62 100644 --- a/ydb/docs/en/core/concepts/_includes/ttl.md +++ b/ydb/docs/en/core/concepts/_includes/ttl.md @@ -210,7 +210,7 @@ For a newly created table, you can pass TTL settings along with the table descri options.WithColumn("id", types.Optional(types.TypeUint64)), options.WithColumn("expire_at", types.Optional(types.TypeTimestamp)), options.WithTimeToLiveSettings( - options.NewTTLSettings().ColumnSecond("modified_at").ExpireAfter(time.Hour), + options.NewTTLSettings().ColumnDateType("expire_at"), ), ) ``` diff --git a/ydb/docs/ru/core/concepts/_includes/ttl.md b/ydb/docs/ru/core/concepts/_includes/ttl.md index cadd5720b43..b84af13a96c 100644 --- a/ydb/docs/ru/core/concepts/_includes/ttl.md +++ b/ydb/docs/ru/core/concepts/_includes/ttl.md @@ -210,7 +210,7 @@ expiration_time = valueof(ttl_column) + expire_after_seconds options.WithColumn("id", types.Optional(types.TypeUint64)), options.WithColumn("expire_at", types.Optional(types.TypeTimestamp)), options.WithTimeToLiveSettings( - options.NewTTLSettings().ColumnSecond("modified_at").ExpireAfter(time.Hour), + options.NewTTLSettings().ColumnDateType("expire_at"), ), ) ``` |