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

Function show_types

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

Source from the content-addressed store, hash-verified

624}
625
626fn show_types<'a>(
627 scx: &'a StatementContext<'a>,
628 from: Option<ResolvedSchemaName>,
629 filter: Option<ShowStatementFilter<Aug>>,
630) -> Result<ShowSelect<'a>, PlanError> {
631 let schema_spec = scx.resolve_optional_schema(&from)?;
632 let query = format!(
633 "SELECT name, comment
634 FROM mz_internal.mz_show_types
635 WHERE schema_id = '{schema_spec}'"
636 );
637 ShowSelect::new(scx, query, filter, None, Some(&["name", "comment"]))
638}
639
640fn show_all_objects<'a>(
641 scx: &'a StatementContext<'a>,

Callers 1

show_objectsFunction · 0.85

Calls 1

Tested by

no test coverage detected