aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorilnaz <ilnaz@ydb.tech>2022-11-24 23:19:03 +0300
committerilnaz <ilnaz@ydb.tech>2022-11-24 23:19:03 +0300
commit2e3de51f8df2c4c5841940520ac3269981dba31e (patch)
tree687ca2e14a31d4ff9d1eaa314585fce50ad53657
parent9a28fc6098ca9969937e9e6b9ef5ecb7b973d90b (diff)
downloadydb-2e3de51f8df2c4c5841940520ac3269981dba31e.tar.gz
VirtualTimestamp (database time) in public api
-rw-r--r--ydb/public/api/protos/ydb_common.proto6
-rw-r--r--ydb/public/api/protos/ydb_scheme.proto4
-rw-r--r--ydb/public/api/protos/ydb_table.proto8
3 files changed, 11 insertions, 7 deletions
diff --git a/ydb/public/api/protos/ydb_common.proto b/ydb/public/api/protos/ydb_common.proto
index 2ecb33fb347..9e865646b43 100644
--- a/ydb/public/api/protos/ydb_common.proto
+++ b/ydb/public/api/protos/ydb_common.proto
@@ -21,3 +21,9 @@ message CostInfo {
message QuotaExceeded {
bool disk = 1;
}
+
+// Specifies a point in database time
+message VirtualTimestamp {
+ uint64 plan_step = 1;
+ uint64 tx_id = 2;
+}
diff --git a/ydb/public/api/protos/ydb_scheme.proto b/ydb/public/api/protos/ydb_scheme.proto
index ce449eea57c..04f717b6dfd 100644
--- a/ydb/public/api/protos/ydb_scheme.proto
+++ b/ydb/public/api/protos/ydb_scheme.proto
@@ -5,6 +5,7 @@ package Ydb.Scheme;
option java_package = "com.yandex.ydb.scheme";
option java_outer_classname = "SchemeOperationProtos";
+import "ydb/public/api/protos/ydb_common.proto";
import "ydb/public/api/protos/ydb_operation.proto";
// Create directory.
@@ -75,6 +76,9 @@ message Entry {
// - DATABASE.
// Empty (zero) in other cases.
uint64 size_bytes = 8;
+
+ // Virtual timestamp when the object was created
+ VirtualTimestamp created_at = 9;
}
message ListDirectoryResult {
diff --git a/ydb/public/api/protos/ydb_table.proto b/ydb/public/api/protos/ydb_table.proto
index 1f66b44cdcb..689d0b0d11f 100644
--- a/ydb/public/api/protos/ydb_table.proto
+++ b/ydb/public/api/protos/ydb_table.proto
@@ -1006,17 +1006,11 @@ message ReadTableResponse {
// Issues
repeated Ydb.Issue.IssueMessage issues = 2;
// Optional snapshot that corresponds to the returned data
- ReadTableSnapshot snapshot = 4;
+ VirtualTimestamp snapshot = 4;
// Read table result
ReadTableResult result = 3;
}
-// Specifies a point in database time that corresponds to the data
-message ReadTableSnapshot {
- uint64 plan_step = 1;
- uint64 tx_id = 2;
-}
-
// Result of read table request
message ReadTableResult {
// Result set (same as result of sql request)