new enum instead of string in proto

This commit is contained in:
Priec
2026-09-07 09:54:32 +02:00
parent 6dc20bf7ad
commit e4364e1c44
16 changed files with 122 additions and 40 deletions

View File

@@ -67,7 +67,7 @@ impl Selection {
#[derive(Clone, Debug)]
pub(crate) struct TableSummary {
pub name: String,
pub table_kind: String,
pub table_kind: crate::definitions::table_definition::ManagedTableKind,
pub global: bool,
pub depends_on: Vec<String>,
}
@@ -76,7 +76,7 @@ impl TableSummary {
/// System tables are backend-managed: the server refuses every write below
/// on them, so the workspace does not offer the panels either.
pub(crate) fn is_system(&self) -> bool {
self.table_kind == "system"
self.table_kind == crate::definitions::table_definition::ManagedTableKind::System
}
}