profile name sent with every table from now on

This commit is contained in:
Priec
2026-08-16 23:51:39 +02:00
parent c05c177624
commit 9b1e592ecd
11 changed files with 64 additions and 26 deletions

View File

@@ -289,6 +289,12 @@ message ProfileTreeResponse {
// True when this table is shared by every profile.
bool global = 6;
// Profile (schema) the table is actually stored in. A global table is
// listed under every profile it is visible from, so this names the one it
// belongs to rather than the one it was reached through, and callers can
// use it as the table's identity without deciding anything themselves.
string profile_name = 7;
}
// Profile (schema) entry.
@@ -377,6 +383,11 @@ message TableDetail {
bool global = 9;
// Revision of this table definition for optimistic concurrency control.
int64 row_version = 10;
// Profile (schema) the table is actually stored in, which is not the
// requested profile when a global table is being listed. See
// ProfileTreeResponse.Table.profile_name.
string profile_name = 11;
}
// Server-owned behavior for one logical column returned in table details.

Binary file not shown.

View File

@@ -263,6 +263,12 @@ pub mod profile_tree_response {
/// True when this table is shared by every profile.
#[prost(bool, tag = "6")]
pub global: bool,
/// Profile (schema) the table is actually stored in. A global table is
/// listed under every profile it is visible from, so this names the one it
/// belongs to rather than the one it was reached through, and callers can
/// use it as the table's identity without deciding anything themselves.
#[prost(string, tag = "7")]
pub profile_name: ::prost::alloc::string::String,
}
/// Profile (schema) entry.
#[derive(Clone, PartialEq, ::prost::Message)]
@@ -388,6 +394,11 @@ pub struct TableDetail {
/// Revision of this table definition for optimistic concurrency control.
#[prost(int64, tag = "10")]
pub row_version: i64,
/// Profile (schema) the table is actually stored in, which is not the
/// requested profile when a global table is being listed. See
/// ProfileTreeResponse.Table.profile_name.
#[prost(string, tag = "11")]
pub profile_name: ::prost::alloc::string::String,
}
/// Server-owned behavior for one logical column returned in table details.
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]