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

Function show_all_objects

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

Source from the content-addressed store, hash-verified

638}
639
640fn show_all_objects<'a>(
641 scx: &'a StatementContext<'a>,
642 from: Option<ResolvedSchemaName>,
643 filter: Option<ShowStatementFilter<Aug>>,
644) -> Result<ShowSelect<'a>, PlanError> {
645 let schema_spec = scx.resolve_optional_schema(&from)?;
646 let query = format!(
647 "SELECT name, type, comment
648 FROM mz_internal.mz_show_all_objects
649 WHERE schema_id = '{schema_spec}'",
650 );
651 ShowSelect::new(scx, query, filter, None, Some(&["name", "type", "comment"]))
652}
653
654pub fn show_indexes<'a>(
655 scx: &'a StatementContext<'a>,

Callers 1

show_objectsFunction · 0.85

Calls 1

Tested by

no test coverage detected