MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / show_cluster_replicas

Function show_cluster_replicas

src/sql/src/plan/statement/show.rs:770–787  ·  view source on GitHub ↗
(
    scx: &'a StatementContext<'a>,
    filter: Option<ShowStatementFilter<Aug>>,
)

Source from the content-addressed store, hash-verified

768}
769
770pub fn show_cluster_replicas<'a>(
771 scx: &'a StatementContext<'a>,
772 filter: Option<ShowStatementFilter<Aug>>,
773) -> Result<ShowSelect<'a>, PlanError> {
774 let query = "
775 SELECT cluster, replica, size, ready, comment
776 FROM mz_internal.mz_show_cluster_replicas
777 "
778 .to_string();
779
780 ShowSelect::new(
781 scx,
782 query,
783 filter,
784 None,
785 Some(&["cluster", "replica", "size", "ready", "comment"]),
786 )
787}
788
789pub fn show_secrets<'a>(
790 scx: &'a StatementContext<'a>,

Callers 1

show_objectsFunction · 0.85

Calls 1

to_stringMethod · 0.45

Tested by

no test coverage detected