global table content

This commit is contained in:
Priec
2026-08-12 14:10:20 +02:00
parent 112bea6519
commit 78e3f1ae08
7 changed files with 54 additions and 17 deletions

View File

@@ -7,6 +7,8 @@
use crate::schema::{ColumnCatalog, ColumnDraft};
pub(crate) const GLOBAL_SCOPE: &str = "__global";
/// The profile and table the workspace is pointed at. Arrives as a query
/// string on the selector and on the column-panel endpoints, and as hidden
/// fields on the panels that write.
@@ -27,6 +29,10 @@ impl Selection {
!self.table.is_empty()
}
pub(crate) fn is_global(&self) -> bool {
self.profile == GLOBAL_SCOPE
}
/// The query string the column panel posts back to, so the panel's own
/// form does not have to carry the selection among its column fields.
pub(crate) fn query(&self) -> String {